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

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

Bits/s × 1,024

Implementations

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

Trait Implementations

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

type Output = KibibitsPerSecond<T>

The resulting type after applying the + operator.

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

See Add/Sub

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

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

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

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

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

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

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

type Output = KibibitsPerSecond<T>

The resulting type after applying the / operator.

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

See Mul/Div

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

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

type T = T

The integer (magnitude) type

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

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

impl<T> From<BitsPerSecond<T>> for KibibitsPerSecond<T> where
    T: TimeInt, 
[src]

impl From<BitsPerSecond<u32>> for KibibitsPerSecond<u64>[src]

impl<T> From<BytesPerSecond<T>> for KibibitsPerSecond<T> where
    T: TimeInt, 
[src]

impl From<BytesPerSecond<u32>> for KibibitsPerSecond<u64>[src]

impl<T> From<KibibitsPerSecond<T>> for KibibytesPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<KibibitsPerSecond<T>> for MebibytesPerSecond<T> where
    T: TimeInt, 
[src]

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

impl<T> From<KibibitsPerSecond<T>> for MebibitsPerSecond<T> where
    T: TimeInt, 
[src]

impl From<KibibitsPerSecond<u32>> for MebibitsPerSecond<u64>[src]

impl From<KibibitsPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl From<KibibitsPerSecond<u32>> for BitsPerSecond<u64>[src]

impl From<KibibitsPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<KibibitsPerSecond<u32>> for MebibytesPerSecond<u64>[src]

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

impl From<KibibytesPerSecond<u32>> for KibibitsPerSecond<u64>[src]

impl From<MebibitsPerSecond<u32>> for KibibitsPerSecond<u64>[src]

impl From<MebibytesPerSecond<u32>> for KibibitsPerSecond<u64>[src]

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

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

type Output = KibibitsPerSecond<T>

The resulting type after applying the * operator.

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

See Mul/Div

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

impl<T, RhsInt> PartialEq<BitsPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<RhsInt>: PartialEq<KibibitsPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<KibibitsPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KibibitsPerSecond<RhsInt>>, 
[src]

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

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

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

impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for MebibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<RhsInt>: PartialEq<MebibitsPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<RhsInt>: PartialEq<KibibytesPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for BitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<T>: TryFrom<KibibitsPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialEq<KibibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<T>: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialEq<MebibitsPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<T>: TryFrom<MebibitsPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>, 
[src]

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

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

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

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

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

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

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

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

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

impl<T, RhsInt> PartialOrd<KibibitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KibibitsPerSecond<RhsInt>>, 
[src]

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

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

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

impl<T, RhsInt> PartialOrd<KibibitsPerSecond<RhsInt>> for BitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<T>: TryFrom<KibibitsPerSecond<RhsInt>>, 
[src]

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

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

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

impl<T, RhsInt> PartialOrd<KibibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<T>: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialOrd<MebibitsPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<T>: TryFrom<MebibitsPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KibibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>, 
[src]

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

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

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

type Output = KibibitsPerSecond<T>

The resulting type after applying the % operator.

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

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

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

type Output = KibibitsPerSecond<T>

The resulting type after applying the - operator.

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

See Add/Sub

impl TryFrom<BitsPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<BytesPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for KibibitsPerSecond<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<KibibitsPerSecond<DestInt>, <KibibitsPerSecond<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
[src]

impl<T> TryFrom<KibibitsPerSecond<T>> for BitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<KibibitsPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KibibitsPerSecond<u64>> for MebibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KibibitsPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KibibitsPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KibibitsPerSecond<u64>> for BitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KibibitsPerSecond<u64>> for MebibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<KibibytesPerSecond<T>> for KibibitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KibibytesPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<MebibitsPerSecond<T>> for KibibitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<MebibitsPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<MebibytesPerSecond<T>> for KibibitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<MebibytesPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

impl<T> Unpin for KibibitsPerSecond<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]