Lines Matching refs:fmt
215 impl ::std::fmt::Binary for $struct_name {
216 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
225 impl ::std::fmt::LowerHex for $struct_name {
226 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
227 <$type as ::std::fmt::LowerHex>::fmt(&self.0, f)
231 impl ::std::fmt::Octal for $struct_name {
232 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
233 <$type as ::std::fmt::Octal>::fmt(&self.0, f)
237 impl ::std::fmt::UpperHex for $struct_name {
238 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
239 <$type as ::std::fmt::UpperHex>::fmt(&self.0, f)
243 impl ::std::fmt::Debug for $struct_name {
244 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
249 impl ::std::fmt::Display for $struct_name {
250 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
251 use ::std::fmt::Display;
255 if first { first = false } else { Display::fmt(&'|', f)?; }
256 Display::fmt(stringify!($const), f)?;
260 Display::fmt(&'0', f)