Trait fugit::ExtU32Ceil

source ·
pub trait ExtU32Ceil {
    // Required methods
    fn nanos_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u32, NOM, DENOM>;
    fn micros_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u32, NOM, DENOM>;
    fn millis_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u32, NOM, DENOM>;
    fn secs_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u32, NOM, DENOM>;
    fn minutes_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u32, NOM, DENOM>;
    fn hours_at_least<const NOM: u32, const DENOM: u32>(
        self,
    ) -> Duration<u32, NOM, DENOM>;
}
Expand description

Extension trait for simple short-hands for u32 Durations (ceil rounded)

Required Methods§

source

fn nanos_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Shorthand for creating a duration which represents nanoseconds.

source

fn micros_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Shorthand for creating a duration which represents microseconds.

source

fn millis_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Shorthand for creating a duration which represents milliseconds.

source

fn secs_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Shorthand for creating a duration which represents seconds.

source

fn minutes_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Shorthand for creating a duration which represents minutes.

source

fn hours_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Shorthand for creating a duration which represents hours.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ExtU32Ceil for u32

source§

fn nanos_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

source§

fn micros_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

source§

fn millis_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

source§

fn secs_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

source§

fn minutes_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

source§

fn hours_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>

Implementors§