[][src]Struct embedded_time::rate::Kilobaud

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

Baud × 1,000

Implementations

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

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

Trait Implementations

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

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

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

type Error = ConversionError

The type returned in the event of a conversion error.

fn try_from(source: Kilobaud<u64>) -> 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<Megabaud<T>> for Kilobaud<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 Kilobaud<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 Kilobaud<T> where
    T: Send

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

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