pub trait Fmt<F: ?Sized> {
// Required method
fn fmt(&self, fmt: &mut Formatter<'_>, fopt: &F) -> Result;
}
Expand description
Implement this trait to provide a new kind of formatting, F
, for values of type Self
.
The type F
may be used to carry formatting options, or it may be a simple unit struct
which merely serves to select the implementation. See the crate documentation for
examples.