Skip to main content

U32Ext

Trait U32Ext 

Source
pub trait U32Ext {
    // Required methods
    fn bps(self) -> Bps;
    fn hz(self) -> Hertz;
    fn khz(self) -> KiloHertz;
    fn mhz(self) -> MegaHertz;
}
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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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

Implementors§