[][src]Struct embedded_time::rate::Mebibaud

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

Baud × 1,048,576

Implementations

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

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

Trait Implementations

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

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

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

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

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

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

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

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

fn from(small: Baud<T>) -> Self[src]

impl From<Baud<u32>> for Mebibaud<u64>[src]

fn from(small: Baud<u32>) -> Self[src]

impl<T: TimeInt> From<Kibibaud<T>> for Mebibaud<T>[src]

fn from(small: Kibibaud<T>) -> Self[src]

impl From<Kibibaud<u32>> for Mebibaud<u64>[src]

fn from(small: Kibibaud<u32>) -> Self[src]

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

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

fn from(source: Mebibaud<u32>) -> Self[src]

impl From<Mebibaud<u32>> for Kibibaud<u64>[src]

fn from(big: Mebibaud<u32>) -> Self[src]

impl From<Mebibaud<u32>> for Baud<u64>[src]

fn from(big: Mebibaud<u32>) -> Self[src]

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

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

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Baud<RhsInt>> for Mebibaud<T> where
    Baud<RhsInt>: PartialEq<Mebibaud<T>>, 
[src]

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

impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibibaud<RhsInt>> for Mebibaud<T> where
    Kibibaud<RhsInt>: PartialEq<Mebibaud<T>>, 
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Mebibaud<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<Kibibaud<u64>> for Mebibaud<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T: TimeInt> TryFrom<Mebibaud<T>> for Kibibaud<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T: TimeInt> TryFrom<Mebibaud<T>> for Baud<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<Mebibaud<u64>> for Kibibaud<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<Mebibaud<u64>> for Baud<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

impl<T> Unpin for Mebibaud<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.