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

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

Bytes/s × 1,000,000

Implementations

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

Trait Implementations

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

type Output = MegabytesPerSecond<T>

The resulting type after applying the + operator.

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

See Add/Sub

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

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

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

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

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

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

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

type Output = MegabytesPerSecond<T>

The resulting type after applying the / operator.

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

See Mul/Div

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

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

type T = T

The integer (magnitude) type

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = MegabytesPerSecond<T>

The resulting type after applying the * operator.

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

See Mul/Div

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

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

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

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

pub fn eq(&self, rhs: &BytesPerSecond<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 MegabytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobytesPerSecond<RhsInt>: PartialEq<MegabytesPerSecond<T>>, 
[src]

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

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

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

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

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

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

pub fn eq(&self, rhs: &MegabytesPerSecond<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> PartialEq<MegabytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    MegabitsPerSecond<T>: TryFrom<MegabytesPerSecond<RhsInt>>, 
[src]

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

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

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

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

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

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

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

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<MegabytesPerSecond<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<KilobytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    KilobytesPerSecond<RhsInt>: TryFrom<MegabytesPerSecond<T>>,
    KilobytesPerSecond<RhsInt>: Ord
[src]

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

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

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

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

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

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

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

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

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

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

pub fn partial_cmp(&self, rhs: &MegabytesPerSecond<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, RhsInt> PartialOrd<MegabytesPerSecond<RhsInt>> for BitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<T>: TryFrom<MegabytesPerSecond<RhsInt>>, 
[src]

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

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

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

type Output = MegabytesPerSecond<T>

The resulting type after applying the % operator.

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

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

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

type Output = MegabytesPerSecond<T>

The resulting type after applying the - operator.

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

See Add/Sub

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for MegabytesPerSecond<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<MegabytesPerSecond<DestInt>, <MegabytesPerSecond<DestInt> as TryFrom<Generic<SourceInt>>>::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<KilobytesPerSecond<u64>> for MegabytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

impl<T> TryFrom<MegabytesPerSecond<T>> for KilobytesPerSecond<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<KilobytesPerSecond<T>, <KilobytesPerSecond<T> as TryFrom<MegabytesPerSecond<T>>>::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<T> TryFrom<MegabytesPerSecond<T>> for MegabitsPerSecond<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<MegabitsPerSecond<T>, <MegabitsPerSecond<T> as TryFrom<MegabytesPerSecond<T>>>::Error>
[src]

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MegabytesPerSecond<u64>
) -> Result<KilobytesPerSecond<u32>, <KilobytesPerSecond<u32> as TryFrom<MegabytesPerSecond<u64>>>::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]

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

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