Trait parse_display::DisplayFormat

source ·
pub trait DisplayFormat<T: ?Sized> {
    // Required method
    fn write(&self, f: &mut Formatter<'_>, value: &T) -> Result;
}
Expand description

Formatting method used in #[display(with = ...)].

Required Methods§

source

fn write(&self, f: &mut Formatter<'_>, value: &T) -> Result

Formatting function used in place of Display::fmt.

Implementors§