Trait serpente::time::U32Ext

source ·
pub trait U32Ext {
    // Required methods
    fn bps(self) -> Bps;
    fn hz(self) -> Hertz;
    fn khz(self) -> KiloHertz;
    fn mhz(self) -> MegaHertz;
    fn s(self) -> Seconds;
    fn ms(self) -> Milliseconds;
    fn us(self) -> Microseconds;
    fn ns(self) -> Nanoseconds;
}
Expand description

Extension trait that adds convenience methods to the u32 type

Required Methods§

source

fn bps(self) -> Bps

Wrap in Bps

source

fn hz(self) -> Hertz

Wrap in Hertz

source

fn khz(self) -> KiloHertz

Wrap in KiloHertz

source

fn mhz(self) -> MegaHertz

Wrap in MegaHertz

source

fn s(self) -> Seconds

Wrap in Seconds

source

fn ms(self) -> Milliseconds

Wrap in Milliseconds

source

fn us(self) -> Microseconds

Wrap in Microseconds

source

fn ns(self) -> Nanoseconds

Wrap in NanoSeconds

Implementations on Foreign Types§

source§

impl U32Ext for u32

source§

fn bps(self) -> Bps

source§

fn hz(self) -> Hertz

source§

fn khz(self) -> KiloHertz

source§

fn mhz(self) -> MegaHertz

source§

fn s(self) -> Seconds

source§

fn ms(self) -> Milliseconds

source§

fn us(self) -> Microseconds

source§

fn ns(self) -> Nanoseconds

Implementors§