pub trait DisplayAs {
// Required method
fn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter<'_>) -> Result;
}
Expand description
Trait for types which could have additional details when formatted in Verbose
mode
Required Methods§
Sourcefn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter<'_>) -> Result
fn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter<'_>) -> Result
Format according to DisplayFormatType
, used when verbose representation looks
different from the default one
Should not include a newline