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

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

Bits/s × 1,000

Implementations

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

Trait Implementations

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

type Output = KilobitsPerSecond<T>

The resulting type after applying the + operator.

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

See Add/Sub

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

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

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

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

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

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

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

type Output = KilobitsPerSecond<T>

The resulting type after applying the / operator.

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

See Mul/Div

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

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

type T = T

The integer (magnitude) type

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

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

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

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

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

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

impl<T> From<KilobitsPerSecond<T>> for MegabytesPerSecond<T> where
    T: TimeInt, 
[src]

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

impl<T> From<KilobitsPerSecond<T>> for MegabitsPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<KilobitsPerSecond<T>> for KilobytesPerSecond<T> where
    T: TimeInt, 
[src]

impl From<KilobitsPerSecond<u32>> for KilobytesPerSecond<u64>[src]

impl From<KilobitsPerSecond<u32>> for MegabitsPerSecond<u64>[src]

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

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

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

impl From<KilobitsPerSecond<u32>> for MegabytesPerSecond<u64>[src]

impl From<KilobytesPerSecond<u32>> for KilobitsPerSecond<u64>[src]

impl From<MegabitsPerSecond<u32>> for KilobitsPerSecond<u64>[src]

impl From<MegabytesPerSecond<u32>> for KilobitsPerSecond<u64>[src]

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

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

type Output = KilobitsPerSecond<T>

The resulting type after applying the * operator.

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

See Mul/Div

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

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

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

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

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

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

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

impl<T, RhsInt> PartialEq<KilobitsPerSecond<RhsInt>> for MegabitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<RhsInt>: PartialEq<MegabitsPerSecond<T>>, 
[src]

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

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

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

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

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

impl<T, RhsInt> PartialEq<KilobitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<KilobitsPerSecond<RhsInt>> for MegabytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<RhsInt>: PartialEq<MegabytesPerSecond<T>>, 
[src]

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

impl<T, RhsInt> PartialEq<KilobytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<T>: TryFrom<KilobytesPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialEq<MegabitsPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<T>: TryFrom<MegabitsPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialEq<MegabytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<T>: TryFrom<MegabytesPerSecond<RhsInt>>, 
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T, RhsInt> PartialOrd<KilobytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<T>: TryFrom<KilobytesPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialOrd<MegabitsPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<T>: TryFrom<MegabitsPerSecond<RhsInt>>, 
[src]

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

impl<T, RhsInt> PartialOrd<MegabytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobitsPerSecond<T>: TryFrom<MegabytesPerSecond<RhsInt>>, 
[src]

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

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

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

type Output = KilobitsPerSecond<T>

The resulting type after applying the % operator.

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

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

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

type Output = KilobitsPerSecond<T>

The resulting type after applying the - operator.

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

See Add/Sub

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

impl<T> TryFrom<KilobitsPerSecond<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: KilobitsPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<KilobitsPerSecond<T>>>::Error>
[src]

impl<T> TryFrom<KilobitsPerSecond<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: KilobitsPerSecond<T>
) -> Result<BitsPerSecond<T>, <BitsPerSecond<T> as TryFrom<KilobitsPerSecond<T>>>::Error>
[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KilobitsPerSecond<u64>> for MegabytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KilobitsPerSecond<u64>> for KilobytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KilobitsPerSecond<u64>> for MegabitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<KilobytesPerSecond<T>> for KilobitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<KilobytesPerSecond<u64>> for KilobitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<MegabitsPerSecond<T>> for KilobitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<MegabitsPerSecond<u64>> for KilobitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<MegabytesPerSecond<T>> for KilobitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<MegabytesPerSecond<u64>> for KilobitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

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