pub trait ToDuration {
// Required method
fn to_duration(&self) -> Duration;
}Expand description
A trait for types that can be turned into a Duration
Required Methods§
Sourcefn to_duration(&self) -> Duration
fn to_duration(&self) -> Duration
Convert the value into the Duration