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§
sourcefn nanos_at_least<const NOM: u32, const DENOM: u32>(
self,
) -> Duration<u32, NOM, DENOM>
fn nanos_at_least<const NOM: u32, const DENOM: u32>( self, ) -> Duration<u32, NOM, DENOM>
Shorthand for creating a duration which represents nanoseconds.
sourcefn micros_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>
Shorthand for creating a duration which represents microseconds.
sourcefn millis_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>
Shorthand for creating a duration which represents milliseconds.
sourcefn secs_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>
Shorthand for creating a duration which represents seconds.
Object Safety§
This trait is not object safe.