pub trait AsFancyDuration<T>
where Self: Sized, T: AsTimes,
{ // 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§

source

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.

Implementations on Foreign Types§

source§

impl AsFancyDuration<Duration> for Duration

Implementors§