Trait fugit::RateExtU64
source · pub trait RateExtU64 {
// Required methods
fn Hz<const NOM: u32, const DENOM: u32>(self) -> Rate<u64, NOM, DENOM>;
fn kHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u64, NOM, DENOM>;
fn MHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u64, NOM, DENOM>;
}
Expand description
Extension trait for simple short-hands for u64 Rate
Required Methods§
sourcefn Hz<const NOM: u32, const DENOM: u32>(self) -> Rate<u64, NOM, DENOM>
fn Hz<const NOM: u32, const DENOM: u32>(self) -> Rate<u64, NOM, DENOM>
Shorthand for creating a rate which represents hertz.
Object Safety§
This trait is not object safe.