[][src]Struct embedded_time::rate::Baud

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

Baud

Implementations

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

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

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: TimeInt> From<Baud<T>> for Kilobaud<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 From<Baud<u32>> for Kibibaud<u64>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl<T: TimeInt> Mul<T> for Baud<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 Baud<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<Baud<RhsInt>> for Kibibaud<T> where
    Baud<RhsInt>: PartialEq<Kibibaud<T>>, 
[src]

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

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

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

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

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

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

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

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

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

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

fn eq(&self, rhs: &Kilobaud<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> PartialEq<Megabaud<RhsInt>> for Baud<T> where
    Self: TryFrom<Megabaud<RhsInt>>, 
[src]

fn eq(&self, rhs: &Megabaud<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<Baud<RhsInt>> for Kibibaud<T> where
    Baud<RhsInt>: TryFrom<Self> + Ord
[src]

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

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

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

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

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

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

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

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

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

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

fn partial_cmp(&self, rhs: &Kilobaud<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, RhsInt: TimeInt> PartialOrd<Megabaud<RhsInt>> for Baud<T> where
    Self: TryFrom<Megabaud<RhsInt>>, 
[src]

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

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

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(big: Kilobaud<u64>) -> 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 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]

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

Auto Trait Implementations

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

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

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