pub trait DurationNum: Sized {
    // Required methods
    fn nanos(self) -> Duration;
    fn micros(self) -> Duration;
    fn millis(self) -> Duration;
    fn seconds(self) -> Duration;
    fn minutes(self) -> Duration;
    fn hours(self) -> Duration;

    // Provided methods
    fn micro(self) -> Duration { ... }
    fn milli(self) -> Duration { ... }
    fn second(self) -> Duration { ... }
    fn minute(self) -> Duration { ... }
    fn hour(self) -> Duration { ... }
}

Required Methods§

Provided Methods§

source

fn micro(self) -> Duration

source

fn milli(self) -> Duration

source

fn second(self) -> Duration

source

fn minute(self) -> Duration

source

fn hour(self) -> Duration

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DurationNum for i64

Implementors§