Trait fugit::RateExtU32

source ·
pub trait RateExtU32 {
    // Required methods
    fn Hz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>;
    fn kHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>;
    fn MHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>;
}
Expand description

Extension trait for simple short-hands for u32 Rate

Required Methods§

source

fn Hz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>

Shorthand for creating a rate which represents hertz.

source

fn kHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>

Shorthand for creating a rate which represents kilohertz.

source

fn MHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>

Shorthand for creating a rate which represents megahertz.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ExtU32 for u32

source§

fn Hz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>

source§

fn kHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>

source§

fn MHz<const NOM: u32, const DENOM: u32>(self) -> Rate<u32, NOM, DENOM>

Implementors§