Struct embedded_time::rate::Kibihertz [−][src]
pub struct Kibihertz<T: TimeInt = u32>(pub T);
Expand description
Hertz × 1,024
Implementations
Trait Implementations
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for Kibihertz<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
[src]
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for Kibihertz<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
[src]impl<T: TimeInt> Display for Kibihertz<T>
[src]
impl<T: TimeInt> Display for Kibihertz<T>
[src]fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]
fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]See Formatting
impl<T: TimeInt> FixedPoint for Kibihertz<T>
[src]
impl<T: TimeInt> FixedPoint for Kibihertz<T>
[src]type T = T
type T = T
The integer (magnitude) type
const SCALING_FACTOR: Fraction
[src]
const SCALING_FACTOR: Fraction
[src]The fractional scaling factor
fn new(value: Self::T) -> Self
[src]
fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]
fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]Multiply with overflow checking
fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]
fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]Multiply with overflow checking
impl<T: Ord + TimeInt> Ord for Kibihertz<T>
[src]
impl<T: Ord + TimeInt> Ord for Kibihertz<T>
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hertz<RhsInt>> for Kibihertz<T> where
Hertz<RhsInt>: PartialEq<Kibihertz<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Hertz<RhsInt>> for Kibihertz<T> where
Hertz<RhsInt>: PartialEq<Kibihertz<T>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Mebihertz<T> where
Kibihertz<RhsInt>: PartialEq<Mebihertz<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Mebihertz<T> where
Kibihertz<RhsInt>: PartialEq<Mebihertz<T>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Kibihertz<T> where
T: TryFrom<RhsInt>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Kibihertz<T> where
T: TryFrom<RhsInt>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Kibihertz<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Kibihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Kibihertz<RhsInt>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Mebihertz<RhsInt>> for Kibihertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Mebihertz<RhsInt>> for Kibihertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>,
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Kibihertz<T> where
Hertz<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Kibihertz<T> where
Hertz<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &Hertz<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Hertz<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Mebihertz<T> where
Kibihertz<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Mebihertz<T> where
Kibihertz<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Kibihertz<T> where
T: TryFrom<RhsInt>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Kibihertz<T> where
T: TryFrom<RhsInt>,
[src]fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Kibihertz<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kibihertz<RhsInt>> for Hertz<T> where
Self: TryFrom<Kibihertz<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Kibihertz<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Mebihertz<RhsInt>> for Kibihertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Mebihertz<RhsInt>> for Kibihertz<T> where
Self: TryFrom<Mebihertz<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &Mebihertz<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &Mebihertz<RhsInt>) -> Option<Ordering>
[src]See Comparisons
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T: TimeInt> Rate for Kibihertz<T>
[src]
impl<T: TimeInt> Rate for Kibihertz<T>
[src]fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
[src]
fn to_generic<DestInt: TimeInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TryFrom<Self::T>,
[src]fn to_duration<Duration: Duration>(&self) -> Result<Duration, ConversionError> where
Duration: FixedPoint,
Self: FixedPoint,
Duration::T: TryFrom<Self::T>,
[src]
fn to_duration<Duration: Duration>(&self) -> Result<Duration, ConversionError> where
Duration: FixedPoint,
Self: FixedPoint,
Duration::T: TryFrom<Self::T>,
[src]impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for Kibihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]
impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for Kibihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for Kibihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]
impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for Kibihertz<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Kibihertz<DestInt> where
DestInt: TryFrom<SourceInt>,
[src]
impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for Kibihertz<DestInt> where
DestInt: TryFrom<SourceInt>,
[src]impl TryFrom<Hertz<u64>> for Kibihertz<u32>
[src]
impl TryFrom<Hertz<u64>> for Kibihertz<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<Kibihertz<T>> for Hertz<T>
[src]
impl<T: TimeInt> TryFrom<Kibihertz<T>> for Hertz<T>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Kibihertz<u64>> for Mebihertz<u32>
[src]
impl TryFrom<Kibihertz<u64>> for Mebihertz<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Kibihertz<u64>> for Kibihertz<u32>
[src]
impl TryFrom<Kibihertz<u64>> for Kibihertz<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Kibihertz<u64>> for Hertz<u32>
[src]
impl TryFrom<Kibihertz<u64>> for Hertz<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<Mebihertz<T>> for Kibihertz<T>
[src]
impl<T: TimeInt> TryFrom<Mebihertz<T>> for Kibihertz<T>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<Mebihertz<u64>> for Kibihertz<u32>
[src]
impl TryFrom<Mebihertz<u64>> for Kibihertz<u32>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: Copy + TimeInt> Copy for Kibihertz<T>
[src]
impl<T: Eq + TimeInt> Eq for Kibihertz<T>
[src]
impl<T: TimeInt> StructuralEq for Kibihertz<T>
[src]
Auto Trait Implementations
impl<T> Send for Kibihertz<T> where
T: Send,
T: Send,
impl<T> Sync for Kibihertz<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Kibihertz<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
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>,