Skip to main content

FromValueType

Trait FromValueType 

Source
pub trait FromValueType {
    // Required methods
    fn Hz(self) -> Hertz;
    fn kHz(self) -> KiloHertz;
    fn MHz(self) -> MegaHertz;
    fn ns(self) -> NanoSeconds;
    fn us(self) -> MicroSeconds;
    fn ms(self) -> MilliSeconds;
    fn s(self) -> Seconds;
    fn ticks(self) -> Ticks;
}

Required Methods§

Source

fn Hz(self) -> Hertz

Source

fn kHz(self) -> KiloHertz

Source

fn MHz(self) -> MegaHertz

Source

fn ns(self) -> NanoSeconds

Source

fn us(self) -> MicroSeconds

Source

fn ms(self) -> MilliSeconds

Source

fn s(self) -> Seconds

Source

fn ticks(self) -> Ticks

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FromValueType for u32

Source§

fn Hz(self) -> Hertz

Source§

fn kHz(self) -> KiloHertz

Source§

fn MHz(self) -> MegaHertz

Source§

fn ns(self) -> NanoSeconds

Source§

fn us(self) -> MicroSeconds

Source§

fn ms(self) -> MilliSeconds

Source§

fn s(self) -> Seconds

Source§

fn ticks(self) -> Ticks

Implementors§