Struct drv8825::embedded_time::rate::Megabaud [−][src]
Baud × 1,000,000
Implementations
impl<T> Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
Trait Implementations
impl<T, Rhs> Add<Rhs> for Megabaud<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
Megabaud<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
Megabaud<T>: TryFrom<Rhs>,
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]
T: TimeInt + Clone,
pub fn clone(&self) -> Megabaud<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for Megabaud<T> where
T: TimeInt + Copy,
[src]
T: TimeInt + Copy,
impl<T> Debug for Megabaud<T> where
T: TimeInt + Debug,
[src]
T: TimeInt + Debug,
impl<T> Default for Megabaud<T> where
T: TimeInt + Default,
[src]
T: TimeInt + Default,
impl<T> Display for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T> Div<T> for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
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]
T: TimeInt + Eq,
impl<T> FixedPoint for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
type T = T
The integer (magnitude) type
pub const SCALING_FACTOR: Fraction
[src]
pub fn new(value: <Megabaud<T> as FixedPoint>::T) -> Megabaud<T>
[src]
pub fn integer(&self) -> &<Megabaud<T> as FixedPoint>::T
[src]
pub fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]
pub fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]
pub fn min_value() -> Self::T
[src]
pub fn max_value() -> Self::T
[src]
impl<T> From<Baud<T>> for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
impl From<Baud<u32>> for Megabaud<u64>
[src]
impl<T> From<Kilobaud<T>> for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
impl From<Kilobaud<u32>> for Megabaud<u64>
[src]
impl<T> From<Megabaud<T>> for Generic<T> where
T: TimeInt,
[src]
T: TimeInt,
impl From<Megabaud<u32>> for Megabaud<u64>
[src]
impl From<Megabaud<u32>> for Kilobaud<u64>
[src]
impl From<Megabaud<u32>> for Baud<u64>
[src]
impl<T> Hash for Megabaud<T> where
T: TimeInt + Hash,
[src]
T: TimeInt + Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Mul<T> for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
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]
T: TimeInt + Ord,
pub fn cmp(&self, other: &Megabaud<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T, RhsInt> PartialEq<Baud<RhsInt>> for Megabaud<T> where
T: TimeInt,
RhsInt: TimeInt,
Baud<RhsInt>: PartialEq<Megabaud<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Baud<RhsInt>: PartialEq<Megabaud<T>>,
pub fn eq(&self, rhs: &Baud<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Kilobaud<RhsInt>> for Megabaud<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<RhsInt>: PartialEq<Megabaud<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<RhsInt>: PartialEq<Megabaud<T>>,
pub fn eq(&self, rhs: &Kilobaud<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Megabaud<RhsInt>> for Kilobaud<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<T>: TryFrom<Megabaud<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<T>: TryFrom<Megabaud<RhsInt>>,
pub fn eq(&self, rhs: &Megabaud<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Megabaud<RhsInt>> for Megabaud<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn eq(&self, rhs: &Megabaud<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Megabaud<RhsInt>> for Baud<T> where
T: TimeInt,
RhsInt: TimeInt,
Baud<T>: TryFrom<Megabaud<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Baud<T>: TryFrom<Megabaud<RhsInt>>,
pub fn eq(&self, rhs: &Megabaud<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Baud<RhsInt>> for Megabaud<T> where
T: TimeInt,
RhsInt: TimeInt,
Baud<RhsInt>: TryFrom<Megabaud<T>>,
Baud<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
Baud<RhsInt>: TryFrom<Megabaud<T>>,
Baud<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &Baud<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Megabaud<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<RhsInt>: TryFrom<Megabaud<T>>,
Kilobaud<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<RhsInt>: TryFrom<Megabaud<T>>,
Kilobaud<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &Kilobaud<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Megabaud<RhsInt>> for Megabaud<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn partial_cmp(&self, rhs: &Megabaud<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Megabaud<RhsInt>> for Kilobaud<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<T>: TryFrom<Megabaud<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilobaud<T>: TryFrom<Megabaud<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Megabaud<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Megabaud<RhsInt>> for Baud<T> where
T: TimeInt,
RhsInt: TimeInt,
Baud<T>: TryFrom<Megabaud<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Baud<T>: TryFrom<Megabaud<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Megabaud<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Rate for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn to_generic<DestInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
[src]
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
pub fn to_duration<Duration>(&self) -> Result<Duration, ConversionError> where
Self: FixedPoint,
Duration: Duration + FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
[src]
Self: FixedPoint,
Duration: Duration + FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
impl<T, Rhs> Rem<Rhs> for Megabaud<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
Megabaud<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
Megabaud<T>: TryFrom<Rhs>,
type Output = Megabaud<T>
The resulting type after applying the %
operator.
pub fn rem(self, rhs: Rhs) -> <Megabaud<T> as Rem<Rhs>>::Output
[src]
See Remainder
impl<T> StructuralEq for Megabaud<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T, Rhs> Sub<Rhs> for Megabaud<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
Megabaud<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
Megabaud<T>: TryFrom<Rhs>,
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]
small: Baud<u64>
) -> Result<Megabaud<u32>, <Megabaud<u32> as TryFrom<Baud<u64>>>::Error>
impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for Megabaud<DestInt> where
DestInt: TimeInt + TryFrom<SourceInt>,
SourceInt: TimeInt,
[src]
DestInt: TimeInt + TryFrom<SourceInt>,
SourceInt: TimeInt,
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]
generic_rate: Generic<SourceInt>
) -> Result<Megabaud<DestInt>, <Megabaud<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
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]
small: Kilobaud<u64>
) -> Result<Megabaud<u32>, <Megabaud<u32> as TryFrom<Kilobaud<u64>>>::Error>
impl<T> TryFrom<Megabaud<T>> for Kilobaud<T> where
T: TimeInt,
[src]
T: TimeInt,
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]
big: Megabaud<T>
) -> Result<Kilobaud<T>, <Kilobaud<T> as TryFrom<Megabaud<T>>>::Error>
impl<T> TryFrom<Megabaud<T>> for Baud<T> where
T: TimeInt,
[src]
T: TimeInt,
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]
big: Megabaud<T>
) -> Result<Baud<T>, <Baud<T> as TryFrom<Megabaud<T>>>::Error>
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]
big: Megabaud<u64>
) -> Result<Kilobaud<u32>, <Kilobaud<u32> as TryFrom<Megabaud<u64>>>::Error>
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]
big: Megabaud<u64>
) -> Result<Baud<u32>, <Baud<u32> as TryFrom<Megabaud<u64>>>::Error>
impl TryFrom<Megabaud<u64>> for Megabaud<u32>
[src]
Auto Trait Implementations
impl<T> Send for Megabaud<T> where
T: Send,
T: Send,
impl<T> Sync for Megabaud<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Megabaud<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,