Skip to main content

DurationExt

Trait DurationExt 

Source
pub trait DurationExt {
    // Required methods
    fn ms(self) -> Duration;
    fn secs(self) -> Duration;
}

Required Methods§

Source

fn ms(self) -> Duration

Source

fn secs(self) -> Duration

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DurationExt for f64

Source§

fn ms(self) -> Duration

Source§

fn secs(self) -> Duration

Source§

impl DurationExt for u64

Source§

fn ms(self) -> Duration

Source§

fn secs(self) -> Duration

Implementors§