rtic_monotonics::imxrt::prelude

Trait ExtU64Ceil

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

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

Required Methods§

Source

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

Shorthand for creating a duration which represents nanoseconds.

Source

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

Shorthand for creating a duration which represents microseconds.

Source

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

Shorthand for creating a duration which represents milliseconds.

Source

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

Shorthand for creating a duration which represents seconds.

Source

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

Shorthand for creating a duration which represents minutes.

Source

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

Shorthand for creating a duration which represents hours.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ExtU64Ceil for u64

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§