[−][src]Struct asm_delay::Hertz
A frequency unit type
Convertible to/from [Period].
Implementations
impl<T> Hertz<T> where
T: TimeInt, [src]
T: TimeInt,
pub fn into_period(self) -> Period<T>[src]
assert_eq!(Hertz(1_000_u32).into_period(), <Period>::new(1, 1_000));
pub fn from_period(period: Period<T>) -> Hertz<T>[src]
assert_eq!(Hertz::from_period(Period::new(1, 1_000)), Hertz(1_000_u32));
Trait Implementations
impl<T> Debug for Hertz<T> where
T: TimeInt + Debug, [src]
T: TimeInt + Debug,
impl<T, Rhs> Div<Rhs> for Hertz<T> where
Rhs: TimeInt,
T: TimeInt + From<Rhs>, [src]
Rhs: TimeInt,
T: TimeInt + From<Rhs>,
type Output = Hertz<T>
The resulting type after applying the / operator.
fn div(self, rhs: Rhs) -> <Hertz<T> as Div<Rhs>>::Output[src]
assert_eq!(Hertz(300_u32) / 3_u32, Hertz(100_u32));
impl<T> Eq for Hertz<T> where
T: TimeInt + Eq, [src]
T: TimeInt + Eq,
impl<T, Rhs> Mul<Rhs> for Hertz<T> where
Rhs: TimeInt,
T: TimeInt + From<Rhs>, [src]
Rhs: TimeInt,
T: TimeInt + From<Rhs>,
type Output = Hertz<T>
The resulting type after applying the * operator.
fn mul(self, rhs: Rhs) -> <Hertz<T> as Mul<Rhs>>::Output[src]
assert_eq!(Hertz(100_u32) * 3_u32, Hertz(300_u32));
impl<T> Ord for Hertz<T> where
T: TimeInt + Ord, [src]
T: TimeInt + Ord,
fn cmp(&self, other: &Hertz<T>) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<T> PartialEq<Hertz<T>> for Hertz<T> where
T: TimeInt + PartialEq<T>, [src]
T: TimeInt + PartialEq<T>,
impl<T> PartialOrd<Hertz<T>> for Hertz<T> where
T: TimeInt + PartialOrd<T>, [src]
T: TimeInt + PartialOrd<T>,
fn partial_cmp(&self, other: &Hertz<T>) -> Option<Ordering>[src]
fn lt(&self, other: &Hertz<T>) -> bool[src]
fn le(&self, other: &Hertz<T>) -> bool[src]
fn gt(&self, other: &Hertz<T>) -> bool[src]
fn ge(&self, other: &Hertz<T>) -> bool[src]
impl<T> StructuralEq for Hertz<T> where
T: TimeInt, [src]
T: TimeInt,
impl<T> StructuralPartialEq for Hertz<T> where
T: TimeInt, [src]
T: TimeInt,
Auto Trait Implementations
impl<T> Send for Hertz<T> where
T: Send,
T: Send,
impl<T> Sync for Hertz<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Hertz<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,