[−][src]Struct embedded_time::rate::Mebihertz
Hertz × 1,048,576
Implementations
impl<T: TimeInt> Mebihertz<T>[src]
Trait Implementations
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for Mebihertz<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>, [src]
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
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 Mebihertz<T>[src]
fn clone(&self) -> Mebihertz<T>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Copy + TimeInt> Copy for Mebihertz<T>[src]
impl<T: Debug + TimeInt> Debug for Mebihertz<T>[src]
impl<T: Default + TimeInt> Default for Mebihertz<T>[src]
impl<T: TimeInt> Display for Mebihertz<T>[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
See Formatting
impl<T: TimeInt> Div<T> for Mebihertz<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 Mebihertz<T>[src]
impl<T: TimeInt> FixedPoint for Mebihertz<T>[src]
type T = T
The integer (magnitude) type
const SCALING_FACTOR: Fraction[src]
fn new(value: Self::T) -> Self[src]
fn integer(&self) -> &Self::T[src]
fn checked_mul(&self, rhs: &Self::T) -> Option<Self>[src]
fn checked_div(&self, rhs: &Self::T) -> Option<Self>[src]
fn min_value() -> Self::T[src]
fn max_value() -> Self::T[src]
impl<T: TimeInt> From<Hertz<T>> for Mebihertz<T>[src]
impl From<Hertz<u32>> for Mebihertz<u64>[src]
impl<T: TimeInt> From<Kibihertz<T>> for Mebihertz<T>[src]
impl From<Kibihertz<u32>> for Mebihertz<u64>[src]
impl<T: TimeInt> From<Mebihertz<T>> for Generic<T>[src]
impl From<Mebihertz<u32>> for Mebihertz<u64>[src]
impl From<Mebihertz<u32>> for Kibihertz<u64>[src]
impl From<Mebihertz<u32>> for Hertz<u64>[src]
impl<T: Hash + TimeInt> Hash for Mebihertz<T>[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<T: TimeInt> Mul<T> for Mebihertz<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 Mebihertz<T>[src]
fn cmp(&self, other: &Mebihertz<T>) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hertz<RhsInt>> for Mebihertz<T> where
Hertz<RhsInt>: PartialEq<Mebihertz<T>>, [src]
Hertz<RhsInt>: PartialEq<Mebihertz<T>>,
fn eq(&self, rhs: &Hertz<RhsInt>) -> bool[src]
See Comparisons
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Mebihertz<T> where
Kibihertz<RhsInt>: PartialEq<Mebihertz<T>>, [src]
Kibihertz<RhsInt>: PartialEq<Mebihertz<T>>,
fn eq(&self, rhs: &Kibihertz<RhsInt>) -> bool[src]
See Comparisons
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Mebihertz<RhsInt>> for Mebihertz<T> where
T: TryFrom<RhsInt>, [src]
T: TryFrom<RhsInt>,
fn eq(&self, rhs: &Mebihertz<RhsInt>) -> bool[src]
See Comparisons
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Mebihertz<RhsInt>> for Kibihertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>, [src]
Self: TryFrom<Mebihertz<RhsInt>>,
fn eq(&self, rhs: &Mebihertz<RhsInt>) -> bool[src]
See Comparisons
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Mebihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>, [src]
Self: TryFrom<Mebihertz<RhsInt>>,
fn eq(&self, rhs: &Mebihertz<RhsInt>) -> bool[src]
See Comparisons
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Mebihertz<T> where
Hertz<RhsInt>: TryFrom<Self> + Ord, [src]
Hertz<RhsInt>: TryFrom<Self> + Ord,
fn partial_cmp(&self, rhs: &Hertz<RhsInt>) -> Option<Ordering>[src]
See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Mebihertz<T> where
Kibihertz<RhsInt>: TryFrom<Self> + Ord, [src]
Kibihertz<RhsInt>: TryFrom<Self> + Ord,
fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>[src]
See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Mebihertz<RhsInt>> for Mebihertz<T> where
T: TryFrom<RhsInt>, [src]
T: TryFrom<RhsInt>,
fn partial_cmp(&self, rhs: &Mebihertz<RhsInt>) -> Option<Ordering>[src]
See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Mebihertz<RhsInt>> for Kibihertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>, [src]
Self: TryFrom<Mebihertz<RhsInt>>,
fn partial_cmp(&self, rhs: &Mebihertz<RhsInt>) -> Option<Ordering>[src]
See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Mebihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>, [src]
Self: TryFrom<Mebihertz<RhsInt>>,
fn partial_cmp(&self, rhs: &Mebihertz<RhsInt>) -> Option<Ordering>[src]
See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl<T: TimeInt> Rate for Mebihertz<T>[src]
fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>, [src]
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
fn to_duration<Duration: Duration>(&self) -> Result<Duration, ConversionError> where
Duration: FixedPoint,
Self: FixedPoint,
Duration::T: TryFrom<Self::T>, [src]
Duration: FixedPoint,
Self: FixedPoint,
Duration::T: TryFrom<Self::T>,
impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for Mebihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint, [src]
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
type Output = Self
The resulting type after applying the % operator.
fn rem(self, rhs: Rhs) -> Self::Output[src]
See Remainder
impl<T: TimeInt> StructuralEq for Mebihertz<T>[src]
impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for Mebihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint, [src]
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
type Output = Self
The resulting type after applying the - operator.
fn sub(self, rhs: Rhs) -> Self::Output[src]
See Add/Sub
impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Mebihertz<DestInt> where
DestInt: TryFrom<SourceInt>, [src]
DestInt: TryFrom<SourceInt>,
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 TryFrom<Hertz<u64>> for Mebihertz<u32>[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(small: Hertz<u64>) -> Result<Self, Self::Error>[src]
impl TryFrom<Kibihertz<u64>> for Mebihertz<u32>[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(small: Kibihertz<u64>) -> Result<Self, Self::Error>[src]
impl<T: TimeInt> TryFrom<Mebihertz<T>> for Kibihertz<T>[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(big: Mebihertz<T>) -> Result<Self, Self::Error>[src]
impl<T: TimeInt> TryFrom<Mebihertz<T>> for Hertz<T>[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(big: Mebihertz<T>) -> Result<Self, Self::Error>[src]
impl TryFrom<Mebihertz<u64>> for Mebihertz<u32>[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(source: Mebihertz<u64>) -> Result<Self, Self::Error>[src]
impl TryFrom<Mebihertz<u64>> for Kibihertz<u32>[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(big: Mebihertz<u64>) -> Result<Self, Self::Error>[src]
impl TryFrom<Mebihertz<u64>> for Hertz<u32>[src]
Auto Trait Implementations
impl<T> Send for Mebihertz<T> where
T: Send,
T: Send,
impl<T> Sync for Mebihertz<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Mebihertz<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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, 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.
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>,