[][src]Struct embedded_time::rate::MebibitsPerSecond

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

Bits/s × 1,048,576

Implementations

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

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

Trait Implementations

impl<T: TimeInt, Rhs: Rate> Add<Rhs> for MebibitsPerSecond<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 MebibitsPerSecond<T>[src]

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

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

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

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

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

impl<T: TimeInt> Div<T> for MebibitsPerSecond<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 MebibitsPerSecond<T>[src]

impl<T: TimeInt> FixedPoint for MebibitsPerSecond<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 MebibitsPerSecond<T>[src]

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

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

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

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

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

impl<T: TimeInt> From<KibibytesPerSecond<T>> for MebibitsPerSecond<T>[src]

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

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

impl<T: TimeInt> From<MebibitsPerSecond<T>> for MebibytesPerSecond<T>[src]

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

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

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

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

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

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

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

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

impl<T: TimeInt> Mul<T> for MebibitsPerSecond<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 MebibitsPerSecond<T>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<BitsPerSecond<RhsInt>> for MebibitsPerSecond<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 MebibitsPerSecond<T> where
    BytesPerSecond<RhsInt>: TryFrom<Self> + Ord
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for MebibitsPerSecond<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 MebibitsPerSecond<T>[src]

impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for MebibitsPerSecond<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 MebibitsPerSecond<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 MebibitsPerSecond<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 MebibitsPerSecond<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<KibibitsPerSecond<u64>> for MebibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T: TimeInt> TryFrom<MebibitsPerSecond<T>> for KibibytesPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T: TimeInt> TryFrom<MebibytesPerSecond<T>> for MebibitsPerSecond<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

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

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, 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.