Skip to main content

DurationExt

Trait DurationExt 

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

Required Methods§

Source

fn ms(self) -> Duration

Source

fn s(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 f32

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for f64

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for i32

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for i64

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for u16

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for u32

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for u64

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Source§

impl DurationExt for usize

Source§

fn ms(self) -> Duration

Source§

fn s(self) -> Duration

Implementors§