Trait timespan::Formatable
[−]
[src]
pub trait Formatable: Display { fn format<'a>(&self, _: &'a str) -> DelayedFormat<StrftimeItems<'a>>; }
Spanable types that are formatable can be used to serialize a given span to a string.
Required Methods
fn format<'a>(&self, _: &'a str) -> DelayedFormat<StrftimeItems<'a>>
This is a wrapper method to the format
method from chrono
.
Implementations on Foreign Types
impl<T: TimeZone> Formatable for Date<T> where
<T as TimeZone>::Offset: Display,
[src]
<T as TimeZone>::Offset: Display,
fn format<'a>(&self, fmt: &'a str) -> DelayedFormat<StrftimeItems<'a>>
[src]
impl<T: TimeZone> Formatable for ChronoDateTime<T> where
<T as TimeZone>::Offset: Display,
[src]
<T as TimeZone>::Offset: Display,