[][src]Trait ticklock::clock::U32Ext

pub trait U32Ext {
    fn hz(self) -> Frequency;
fn khz(self) -> Frequency;
fn mhz(self) -> Frequency;
fn ms(self) -> Duration;
fn us(self) -> Duration;
fn s(self) -> Duration;
fn clamp(self, min: u32, max: u32) -> u32; }

Extension trait that adds convenience methods to the u32 type

Required methods

fn hz(self) -> Frequency

Wrap in Frequency

fn khz(self) -> Frequency

Wrap in Frequency

fn mhz(self) -> Frequency

Wrap in Frequency

fn ms(self) -> Duration

Wrap in millisecond Duration

fn us(self) -> Duration

Wrap in microsecond Duration

fn s(self) -> Duration

Wrap in microsecond Duration

fn clamp(self, min: u32, max: u32) -> u32

Make the value stay in between 2 bounds

Loading content...

Implementors

impl U32Ext for u32[src]

Loading content...