pub trait Formatable: Display {
// Required method
fn format<'a>(&self, _: &'a str) -> DelayedFormat<StrftimeItems<'a>>;
}
Expand description
Spanable types that are formatable can be used to serialize a given span to a string.
Required Methods§
Sourcefn format<'a>(&self, _: &'a str) -> DelayedFormat<StrftimeItems<'a>>
fn format<'a>(&self, _: &'a str) -> DelayedFormat<StrftimeItems<'a>>
This is a wrapper method to the format
method from chrono
.