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

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

Bytes/s × 1,000,000

Implementations

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

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

Trait Implementations

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

type Output = Self

The resulting type after applying the + operator.

fn add(self, rhs: Rhs) -> Self::Output[src]

See Add/Sub

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

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

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

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

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

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

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

type Output = Self

The resulting type after applying the / operator.

fn div(self, rhs: T) -> Self::Output[src]

See Mul/Div

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

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

type T = T

The integer (magnitude) type

fn new(value: Self::T) -> Self[src]

fn integer(&self) -> &Self::T[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = Self

The resulting type after applying the * operator.

fn mul(self, rhs: T) -> Self::Output[src]

See Mul/Div

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = Self

The resulting type after applying the % operator.

fn rem(self, rhs: Rhs) -> Self::Output[src]

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

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

type Output = Self

The resulting type after applying the - operator.

fn sub(self, rhs: Rhs) -> Self::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.

fn try_from(small: BitsPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: BytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(generic_rate: Generic<SourceInt>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: KilobitsPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(small: MegabitsPerSecond<u64>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<MegabytesPerSecond<T>> for MegabitsPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<MegabytesPerSecond<T>> for KilobytesPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<MegabytesPerSecond<T>> for BytesPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>[src]

impl<T: TimeInt> TryFrom<MegabytesPerSecond<T>> for BitsPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(source: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>[src]

Auto Trait Implementations

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

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

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

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.