Struct drv8825::embedded_time::rate::Kibihertz[][src]

pub struct Kibihertz<T = u32>(pub T)
where
    T: TimeInt
;

Hertz × 1,024

Implementations

impl<T> Kibihertz<T> where
    T: TimeInt, 
[src]

pub fn new(value: T) -> Kibihertz<T>[src]

Trait Implementations

impl<T, Rhs> Add<Rhs> for Kibihertz<T> where
    T: TimeInt,
    Rhs: Rate + FixedPoint,
    Kibihertz<T>: TryFrom<Rhs>, 
[src]

type Output = Kibihertz<T>

The resulting type after applying the + operator.

pub fn add(self, rhs: Rhs) -> <Kibihertz<T> as Add<Rhs>>::Output[src]

See Add/Sub

impl<T> Clone for Kibihertz<T> where
    T: TimeInt + Clone
[src]

impl<T> Copy for Kibihertz<T> where
    T: TimeInt + Copy
[src]

impl<T> Debug for Kibihertz<T> where
    T: TimeInt + Debug
[src]

impl<T> Default for Kibihertz<T> where
    T: TimeInt + Default
[src]

impl<T> Display for Kibihertz<T> where
    T: TimeInt, 
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

impl<T> Div<T> for Kibihertz<T> where
    T: TimeInt, 
[src]

type Output = Kibihertz<T>

The resulting type after applying the / operator.

pub fn div(self, rhs: T) -> <Kibihertz<T> as Div<T>>::Output[src]

See Mul/Div

impl<T> Eq for Kibihertz<T> where
    T: TimeInt + Eq
[src]

impl<T> FixedPoint for Kibihertz<T> where
    T: TimeInt, 
[src]

type T = T

The integer (magnitude) type

pub fn new(value: <Kibihertz<T> as FixedPoint>::T) -> Kibihertz<T>[src]

pub fn integer(&self) -> &<Kibihertz<T> as FixedPoint>::T[src]

impl<T> From<Hertz<T>> for Kibihertz<T> where
    T: TimeInt, 
[src]

impl From<Hertz<u32>> for Kibihertz<u64>[src]

pub fn from(small: Hertz<u32>) -> Kibihertz<u64>[src]

impl<T> From<Kibihertz<T>> for Generic<T> where
    T: TimeInt, 
[src]

impl<T> From<Kibihertz<T>> for Mebihertz<T> where
    T: TimeInt, 
[src]

impl From<Kibihertz<u32>> for Kibihertz<u64>[src]

pub fn from(source: Kibihertz<u32>) -> Kibihertz<u64>[src]

impl From<Kibihertz<u32>> for Hertz<u64>[src]

pub fn from(big: Kibihertz<u32>) -> Hertz<u64>[src]

impl From<Kibihertz<u32>> for Mebihertz<u64>[src]

pub fn from(small: Kibihertz<u32>) -> Mebihertz<u64>[src]

impl From<Mebihertz<u32>> for Kibihertz<u64>[src]

impl<T> Hash for Kibihertz<T> where
    T: TimeInt + Hash
[src]

impl<T> Mul<T> for Kibihertz<T> where
    T: TimeInt, 
[src]

type Output = Kibihertz<T>

The resulting type after applying the * operator.

pub fn mul(self, rhs: T) -> <Kibihertz<T> as Mul<T>>::Output[src]

See Mul/Div

impl<T> Ord for Kibihertz<T> where
    T: TimeInt + Ord
[src]

impl<T, RhsInt> PartialEq<Hertz<RhsInt>> for Kibihertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Hertz<RhsInt>: PartialEq<Kibihertz<T>>, 
[src]

pub fn eq(&self, rhs: &Hertz<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<Kibihertz<RhsInt>> for Hertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Hertz<T>: TryFrom<Kibihertz<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &Kibihertz<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<Kibihertz<RhsInt>> for Mebihertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Kibihertz<RhsInt>: PartialEq<Mebihertz<T>>, 
[src]

pub fn eq(&self, rhs: &Kibihertz<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<Kibihertz<RhsInt>> for Kibihertz<T> where
    T: TimeInt + TryFrom<RhsInt>,
    RhsInt: TimeInt, 
[src]

pub fn eq(&self, rhs: &Kibihertz<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<Mebihertz<RhsInt>> for Kibihertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Kibihertz<T>: TryFrom<Mebihertz<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &Mebihertz<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialOrd<Hertz<RhsInt>> for Kibihertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Hertz<RhsInt>: TryFrom<Kibihertz<T>>,
    Hertz<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &Hertz<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<Kibihertz<RhsInt>> for Mebihertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Kibihertz<RhsInt>: TryFrom<Mebihertz<T>>,
    Kibihertz<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<Kibihertz<RhsInt>> for Hertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Hertz<T>: TryFrom<Kibihertz<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<Kibihertz<RhsInt>> for Kibihertz<T> where
    T: TimeInt + TryFrom<RhsInt>,
    RhsInt: TimeInt, 
[src]

pub fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<Mebihertz<RhsInt>> for Kibihertz<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Kibihertz<T>: TryFrom<Mebihertz<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &Mebihertz<RhsInt>) -> Option<Ordering>[src]

impl<T> Rate for Kibihertz<T> where
    T: TimeInt, 
[src]

impl<T, Rhs> Rem<Rhs> for Kibihertz<T> where
    T: TimeInt,
    Rhs: Rate + FixedPoint,
    Kibihertz<T>: TryFrom<Rhs>, 
[src]

type Output = Kibihertz<T>

The resulting type after applying the % operator.

pub fn rem(self, rhs: Rhs) -> <Kibihertz<T> as Rem<Rhs>>::Output[src]

impl<T> StructuralEq for Kibihertz<T> where
    T: TimeInt, 
[src]

impl<T, Rhs> Sub<Rhs> for Kibihertz<T> where
    T: TimeInt,
    Rhs: Rate + FixedPoint,
    Kibihertz<T>: TryFrom<Rhs>, 
[src]

type Output = Kibihertz<T>

The resulting type after applying the - operator.

pub fn sub(self, rhs: Rhs) -> <Kibihertz<T> as Sub<Rhs>>::Output[src]

See Add/Sub

impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for Kibihertz<DestInt> where
    DestInt: TimeInt + TryFrom<SourceInt>,
    SourceInt: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    generic_rate: Generic<SourceInt>
) -> Result<Kibihertz<DestInt>, <Kibihertz<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
[src]

impl TryFrom<Hertz<u64>> for Kibihertz<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: Hertz<u64>
) -> Result<Kibihertz<u32>, <Kibihertz<u32> as TryFrom<Hertz<u64>>>::Error>
[src]

impl<T> TryFrom<Kibihertz<T>> for Hertz<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: Kibihertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Kibihertz<T>>>::Error>
[src]

impl TryFrom<Kibihertz<u64>> for Hertz<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: Kibihertz<u64>
) -> Result<Hertz<u32>, <Hertz<u32> as TryFrom<Kibihertz<u64>>>::Error>
[src]

impl TryFrom<Kibihertz<u64>> for Kibihertz<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    source: Kibihertz<u64>
) -> Result<Kibihertz<u32>, <Kibihertz<u32> as TryFrom<Kibihertz<u64>>>::Error>
[src]

impl TryFrom<Kibihertz<u64>> for Mebihertz<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: Kibihertz<u64>
) -> Result<Mebihertz<u32>, <Mebihertz<u32> as TryFrom<Kibihertz<u64>>>::Error>
[src]

impl<T> TryFrom<Mebihertz<T>> for Kibihertz<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: Mebihertz<T>
) -> Result<Kibihertz<T>, <Kibihertz<T> as TryFrom<Mebihertz<T>>>::Error>
[src]

impl TryFrom<Mebihertz<u64>> for Kibihertz<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: Mebihertz<u64>
) -> Result<Kibihertz<u32>, <Kibihertz<u32> as TryFrom<Mebihertz<u64>>>::Error>
[src]

Auto Trait Implementations

impl<T> Send for Kibihertz<T> where
    T: Send

impl<T> Sync for Kibihertz<T> where
    T: Sync

impl<T> Unpin for Kibihertz<T> where
    T: Unpin

Blanket Implementations

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

impl<T> Az for T[src]

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

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

impl<T> CheckedAs for T[src]

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

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

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[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.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]