[][src]Struct stm32f1xx_hal::time::Hertz

pub struct Hertz(pub u32);

Hertz

Create a frequency specified in Hertz.

See also KiloHertz and MegaHertz for semantically correct ways of creating higher frequencies.

Examples

Create an 60 Hz frequency

use stm32f1xx_hal::time::Hertz;

let freq = 60.hz();

Trait Implementations

impl Clone for Hertz[src]

impl Copy for Hertz[src]

impl Debug for Hertz[src]

impl Div<Hertz> for Hertz[src]

type Output = u32

The resulting type after applying the / operator.

impl Div<u32> for Hertz[src]

type Output = Self

The resulting type after applying the / operator.

impl DivAssign<u32> for Hertz[src]

impl From<KiloHertz> for Hertz[src]

impl From<MegaHertz> for Hertz[src]

impl Into<Hertz> for MilliSeconds[src]

impl Into<Hertz> for MicroSeconds[src]

impl Mul<u32> for Hertz[src]

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<u32> for Hertz[src]

impl PartialEq<Hertz> for Hertz[src]

impl StructuralPartialEq for Hertz[src]

Auto Trait Implementations

impl Send for Hertz

impl Sync for Hertz

impl Unpin for Hertz

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.