[][src]Struct reaper_medium::Hz

pub struct Hz(_);

This represents a frequency measured in hertz (how often something happens per second).

Implementations

impl Hz[src]

pub fn new(value: f64) -> Hz[src]

Creates a hertz value.

Panics

This function panics if the given value zero or negative.

pub unsafe fn new_unchecked(value: f64) -> Hz[src]

Creates a hertz value without bound checking.

Safety

You must ensure that the given value is greater than 0.0.

pub const fn get(&self) -> f64[src]

Returns the wrapped value.

Trait Implementations

impl Clone for Hz[src]

impl Copy for Hz[src]

impl Debug for Hz[src]

impl Default for Hz[src]

impl Display for Hz[src]

impl PartialEq<Hz> for Hz[src]

impl PartialOrd<Hz> for Hz[src]

impl StructuralPartialEq for Hz[src]

Auto Trait Implementations

impl RefUnwindSafe for Hz

impl Send for Hz

impl Sync for Hz

impl Unpin for Hz

impl UnwindSafe for Hz

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.