pub trait Display {
    // Required method
    fn fmt(&self, f: &mut Formatter<'_>) -> Result;
}Expand description
A copy of core::fmt::Display that allows us to implement it for foreign types.
Types should implement this trait rather than core::fmt::Display. Together with the
[Adapter] type and fmt! macro, it allows for formatting foreign types (e.g. types from
core) which do not implement core::fmt::Display directly.
Required Methods§
Sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result
 
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Same as core::fmt::Display::fmt.