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

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

Baud × 1,000,000

Implementations

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

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

Trait Implementations

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

type Output = Megabaud<T>

The resulting type after applying the + operator.

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

See Add/Sub

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

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

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

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

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

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

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

type Output = Megabaud<T>

The resulting type after applying the / operator.

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

See Mul/Div

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

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

type T = T

The integer (magnitude) type

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

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

impl<T> From<Baud<T>> for Megabaud<T> where
    T: TimeInt, 
[src]

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

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

pub fn from(small: Baud<u32>) -> Megabaud<u64>[src]

impl<T> From<Kilobaud<T>> for Megabaud<T> where
    T: TimeInt, 
[src]

impl From<Kilobaud<u32>> for Megabaud<u64>[src]

pub fn from(small: Kilobaud<u32>) -> Megabaud<u64>[src]

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

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

pub fn from(source: Megabaud<u32>) -> Megabaud<u64>[src]

impl From<Megabaud<u32>> for Kilobaud<u64>[src]

pub fn from(big: Megabaud<u32>) -> Kilobaud<u64>[src]

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

pub fn from(big: Megabaud<u32>) -> Baud<u64>[src]

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

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

type Output = Megabaud<T>

The resulting type after applying the * operator.

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

See Mul/Div

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

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

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

impl<T, RhsInt> PartialEq<Kilobaud<RhsInt>> for Megabaud<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    Kilobaud<RhsInt>: PartialEq<Megabaud<T>>, 
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = Megabaud<T>

The resulting type after applying the % operator.

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

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

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

type Output = Megabaud<T>

The resulting type after applying the - operator.

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

See Add/Sub

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

impl TryFrom<Kilobaud<u64>> for Megabaud<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<Megabaud<T>> for Kilobaud<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl<T> TryFrom<Megabaud<T>> for Baud<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

impl TryFrom<Megabaud<u64>> for Kilobaud<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

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