pub trait NumericDuration {
// Required methods
fn seconds(self) -> Duration;
fn minutes(self) -> Duration;
fn hours(self) -> Duration;
fn days(self) -> Duration;
fn weeks(self) -> Duration;
fn months(self) -> Duration;
fn years(self) -> Duration;
}Expand description
Duration constructors on numeric types.