[][src]Struct libmedium::units::Frequency

pub struct Frequency(_);

Struct that represents a frequency.

Implementations

impl Frequency[src]

pub fn from_hertz(hz: u32) -> Self[src]

Create a Frequency struct from a value measuring times per second.

pub fn as_hertz(self) -> u32[src]

Return this Frequency's value in times per second.

Trait Implementations

impl Add<Frequency> for Frequency[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Frequency[src]

impl Copy for Frequency[src]

impl Debug for Frequency[src]

impl Display for Frequency[src]

impl<T: Into<u32>> Div<T> for Frequency[src]

type Output = Self

The resulting type after applying the / operator.

impl Eq for Frequency[src]

impl Hash for Frequency[src]

impl<T: Into<u32>> Mul<T> for Frequency[src]

type Output = Self

The resulting type after applying the * operator.

impl Ord for Frequency[src]

impl PartialEq<Frequency> for Frequency[src]

impl PartialOrd<Frequency> for Frequency[src]

impl Raw for Frequency[src]

impl StructuralEq for Frequency[src]

impl StructuralPartialEq for Frequency[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.