Struct drv8825::embedded_time::rate::Megahertz [−][src]
Hertz × 1,000,000
Implementations
impl<T> Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
Trait Implementations
impl<T, Rhs> Add<Rhs> for Megahertz<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
Megahertz<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
Megahertz<T>: TryFrom<Rhs>,
type Output = Megahertz<T>
The resulting type after applying the +
operator.
pub fn add(self, rhs: Rhs) -> <Megahertz<T> as Add<Rhs>>::Output
[src]
See Add/Sub
impl<T> Clone for Megahertz<T> where
T: TimeInt + Clone,
[src]
T: TimeInt + Clone,
pub fn clone(&self) -> Megahertz<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for Megahertz<T> where
T: TimeInt + Copy,
[src]
T: TimeInt + Copy,
impl<T> Debug for Megahertz<T> where
T: TimeInt + Debug,
[src]
T: TimeInt + Debug,
impl<T> Default for Megahertz<T> where
T: TimeInt + Default,
[src]
T: TimeInt + Default,
impl<T> Display for Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T> Div<T> for Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
type Output = Megahertz<T>
The resulting type after applying the /
operator.
pub fn div(self, rhs: T) -> <Megahertz<T> as Div<T>>::Output
[src]
See Mul/Div
impl<T> Eq for Megahertz<T> where
T: TimeInt + Eq,
[src]
T: TimeInt + Eq,
impl<T> FixedPoint for Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
type T = T
The integer (magnitude) type
pub const SCALING_FACTOR: Fraction
[src]
pub fn new(value: <Megahertz<T> as FixedPoint>::T) -> Megahertz<T>
[src]
pub fn integer(&self) -> &<Megahertz<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<Hertz<T>> for Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
impl From<Hertz<u32>> for Megahertz<u64>
[src]
impl<T> From<Kilohertz<T>> for Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
impl From<Kilohertz<u32>> for Megahertz<u64>
[src]
impl<T> From<Megahertz<T>> for Generic<T> where
T: TimeInt,
[src]
T: TimeInt,
impl From<Megahertz<u32>> for Hertz<u64>
[src]
impl From<Megahertz<u32>> for Megahertz<u64>
[src]
impl From<Megahertz<u32>> for Kilohertz<u64>
[src]
impl<T> Hash for Megahertz<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 Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
type Output = Megahertz<T>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: T) -> <Megahertz<T> as Mul<T>>::Output
[src]
See Mul/Div
impl<T> Ord for Megahertz<T> where
T: TimeInt + Ord,
[src]
T: TimeInt + Ord,
pub fn cmp(&self, other: &Megahertz<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<Hertz<RhsInt>> for Megahertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<RhsInt>: PartialEq<Megahertz<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Hertz<RhsInt>: PartialEq<Megahertz<T>>,
pub fn eq(&self, rhs: &Hertz<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Kilohertz<RhsInt>> for Megahertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<RhsInt>: PartialEq<Megahertz<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<RhsInt>: PartialEq<Megahertz<T>>,
pub fn eq(&self, rhs: &Kilohertz<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Megahertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Megahertz<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Megahertz<RhsInt>>,
pub fn eq(&self, rhs: &Megahertz<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Megahertz<RhsInt>> for Megahertz<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn eq(&self, rhs: &Megahertz<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<Megahertz<RhsInt>> for Kilohertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<T>: TryFrom<Megahertz<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<T>: TryFrom<Megahertz<RhsInt>>,
pub fn eq(&self, rhs: &Megahertz<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<Hertz<RhsInt>> for Megahertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<RhsInt>: TryFrom<Megahertz<T>>,
Hertz<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
Hertz<RhsInt>: TryFrom<Megahertz<T>>,
Hertz<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &Hertz<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<Kilohertz<RhsInt>> for Megahertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<RhsInt>: TryFrom<Megahertz<T>>,
Kilohertz<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<RhsInt>: TryFrom<Megahertz<T>>,
Kilohertz<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &Kilohertz<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<Megahertz<RhsInt>> for Megahertz<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn partial_cmp(&self, rhs: &Megahertz<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<Megahertz<RhsInt>> for Kilohertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<T>: TryFrom<Megahertz<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Kilohertz<T>: TryFrom<Megahertz<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Megahertz<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<Megahertz<RhsInt>> for Hertz<T> where
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Megahertz<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
Hertz<T>: TryFrom<Megahertz<RhsInt>>,
pub fn partial_cmp(&self, rhs: &Megahertz<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 Megahertz<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 Megahertz<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
Megahertz<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
Megahertz<T>: TryFrom<Rhs>,
type Output = Megahertz<T>
The resulting type after applying the %
operator.
pub fn rem(self, rhs: Rhs) -> <Megahertz<T> as Rem<Rhs>>::Output
[src]
See Remainder
impl<T> StructuralEq for Megahertz<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T, Rhs> Sub<Rhs> for Megahertz<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
Megahertz<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
Megahertz<T>: TryFrom<Rhs>,
type Output = Megahertz<T>
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Rhs) -> <Megahertz<T> as Sub<Rhs>>::Output
[src]
See Add/Sub
impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for Megahertz<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<Megahertz<DestInt>, <Megahertz<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
[src]
generic_rate: Generic<SourceInt>
) -> Result<Megahertz<DestInt>, <Megahertz<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
impl TryFrom<Hertz<u64>> for Megahertz<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Hertz<u64>
) -> Result<Megahertz<u32>, <Megahertz<u32> as TryFrom<Hertz<u64>>>::Error>
[src]
small: Hertz<u64>
) -> Result<Megahertz<u32>, <Megahertz<u32> as TryFrom<Hertz<u64>>>::Error>
impl TryFrom<Kilohertz<u64>> for Megahertz<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: Kilohertz<u64>
) -> Result<Megahertz<u32>, <Megahertz<u32> as TryFrom<Kilohertz<u64>>>::Error>
[src]
small: Kilohertz<u64>
) -> Result<Megahertz<u32>, <Megahertz<u32> as TryFrom<Kilohertz<u64>>>::Error>
impl<T> TryFrom<Megahertz<T>> for Kilohertz<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: Megahertz<T>
) -> Result<Kilohertz<T>, <Kilohertz<T> as TryFrom<Megahertz<T>>>::Error>
[src]
big: Megahertz<T>
) -> Result<Kilohertz<T>, <Kilohertz<T> as TryFrom<Megahertz<T>>>::Error>
impl<T> TryFrom<Megahertz<T>> for Hertz<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: Megahertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Megahertz<T>>>::Error>
[src]
big: Megahertz<T>
) -> Result<Hertz<T>, <Hertz<T> as TryFrom<Megahertz<T>>>::Error>
impl TryFrom<Megahertz<u64>> for Kilohertz<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: Megahertz<u64>
) -> Result<Kilohertz<u32>, <Kilohertz<u32> as TryFrom<Megahertz<u64>>>::Error>
[src]
big: Megahertz<u64>
) -> Result<Kilohertz<u32>, <Kilohertz<u32> as TryFrom<Megahertz<u64>>>::Error>
impl TryFrom<Megahertz<u64>> for Megahertz<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
source: Megahertz<u64>
) -> Result<Megahertz<u32>, <Megahertz<u32> as TryFrom<Megahertz<u64>>>::Error>
[src]
source: Megahertz<u64>
) -> Result<Megahertz<u32>, <Megahertz<u32> as TryFrom<Megahertz<u64>>>::Error>
impl TryFrom<Megahertz<u64>> for Hertz<u32>
[src]
Auto Trait Implementations
impl<T> Send for Megahertz<T> where
T: Send,
T: Send,
impl<T> Sync for Megahertz<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Megahertz<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>,