Trait U128BitrateExt

Source
pub trait U128BitrateExt<T> {
    // Required methods
    fn bps(self) -> Bps<T>;
    fn hz(self) -> Hertz<T>;
    fn khz(self) -> KiloHertz<T>;
    fn mhz(self) -> MegaHertz<T>;
}
Expand description

Extension trait that adds convenience methods to the u128 type.

Required Methods§

Source

fn bps(self) -> Bps<T>

Wrap in Bps

Source

fn hz(self) -> Hertz<T>

Wrap in Hertz

Source

fn khz(self) -> KiloHertz<T>

Wrap in KiloHertz

Source

fn mhz(self) -> MegaHertz<T>

Wrap in MegaHertz

Implementations on Foreign Types§

Source§

impl U128BitrateExt<u128> for u128

Source§

fn bps(self) -> Bps<u128>

Source§

fn hz(self) -> Hertz<u128>

Source§

fn khz(self) -> KiloHertz<u128>

Source§

fn mhz(self) -> MegaHertz<u128>

Implementors§