Trait fancy_duration::AsFancyDuration
source · pub trait AsFancyDuration<T>{
// Required method
fn fancy_duration(&self) -> FancyDuration<T>;
}Expand description
Implement AsFancyDuration for your Duration type, it will annotate those types with the
fancy_duration function which allows trivial and explicit conversion into a fancy duration.
Required Methods§
sourcefn fancy_duration(&self) -> FancyDuration<T>
fn fancy_duration(&self) -> FancyDuration<T>
Convert T to a fancy_duration, which can be converted to a string representation of the duration.
Object Safety§
This trait is not object safe.