pub struct Microhertz<T: TimeInt = u32>(pub T);
Expand description
Hertz / 1,000,000
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
Source§impl<T: TimeInt, Rhs> Add<Rhs> for Microhertz<T>
impl<T: TimeInt, Rhs> Add<Rhs> for Microhertz<T>
Source§impl<T: Clone + TimeInt> Clone for Microhertz<T>
impl<T: Clone + TimeInt> Clone for Microhertz<T>
Source§fn clone(&self) -> Microhertz<T>
fn clone(&self) -> Microhertz<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Default + TimeInt> Default for Microhertz<T>
impl<T: Default + TimeInt> Default for Microhertz<T>
Source§fn default() -> Microhertz<T>
fn default() -> Microhertz<T>
Returns the “default value” for a type. Read more
Source§impl<T: TimeInt> Display for Microhertz<T>
impl<T: TimeInt> Display for Microhertz<T>
Source§impl<T: TimeInt> Div<T> for Microhertz<T>
impl<T: TimeInt> Div<T> for Microhertz<T>
Source§impl<T: TimeInt> FixedPoint for Microhertz<T>
impl<T: TimeInt> FixedPoint for Microhertz<T>
Source§impl<T: TimeInt> From<Microhertz<T>> for Generic<T>
impl<T: TimeInt> From<Microhertz<T>> for Generic<T>
Source§fn from(rate: Microhertz<T>) -> Self
fn from(rate: Microhertz<T>) -> Self
Source§impl From<Microhertz> for Microhertz<u64>
impl From<Microhertz> for Microhertz<u64>
Source§fn from(source: Microhertz<u32>) -> Self
fn from(source: Microhertz<u32>) -> Self
Source§impl<T: TimeInt> Mul<T> for Microhertz<T>
impl<T: TimeInt> Mul<T> for Microhertz<T>
Source§impl<T: Ord + TimeInt> Ord for Microhertz<T>
impl<T: Ord + TimeInt> Ord for Microhertz<T>
Source§fn cmp(&self, other: &Microhertz<T>) -> Ordering
fn cmp(&self, other: &Microhertz<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Microhertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Microhertz<RhsInt>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Microhertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Microhertz<RhsInt>>,
Source§impl<T, RhsInt: TimeInt> PartialEq<Microhertz<RhsInt>> for Microhertz<T>
impl<T, RhsInt: TimeInt> PartialEq<Microhertz<RhsInt>> for Microhertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Microhertz<T>
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Microhertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Microhertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Microhertz<RhsInt>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Microhertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Microhertz<RhsInt>>,
Source§impl<T, RhsInt: TimeInt> PartialOrd<Microhertz<RhsInt>> for Microhertz<T>
impl<T, RhsInt: TimeInt> PartialOrd<Microhertz<RhsInt>> for Microhertz<T>
Source§impl<T: TimeInt> Rate for Microhertz<T>
impl<T: TimeInt> Rate for Microhertz<T>
Source§fn to_generic<DestInt>(
self,
scaling_factor: Fraction,
) -> Result<Generic<DestInt>, ConversionError>
fn to_generic<DestInt>( self, scaling_factor: Fraction, ) -> Result<Generic<DestInt>, ConversionError>
Source§fn to_duration<Duration>(&self) -> Result<Duration, ConversionError>
fn to_duration<Duration>(&self) -> Result<Duration, ConversionError>
Source§impl<T: TimeInt, Rhs> Rem<Rhs> for Microhertz<T>
impl<T: TimeInt, Rhs> Rem<Rhs> for Microhertz<T>
Source§impl<T: TimeInt, Rhs> Sub<Rhs> for Microhertz<T>
impl<T: TimeInt, Rhs> Sub<Rhs> for Microhertz<T>
Source§impl<T: TimeInt> TryFrom<Microhertz<T>> for Hertz<T>
impl<T: TimeInt> TryFrom<Microhertz<T>> for Hertz<T>
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Microhertz<u64>> for Hertz<u32>
impl TryFrom<Microhertz<u64>> for Hertz<u32>
Source§impl TryFrom<Microhertz<u64>> for Microhertz<u32>
impl TryFrom<Microhertz<u64>> for Microhertz<u32>
impl<T: Copy + TimeInt> Copy for Microhertz<T>
impl<T: Eq + TimeInt> Eq for Microhertz<T>
Auto Trait Implementations§
impl<T> Freeze for Microhertz<T>where
T: Freeze,
impl<T> RefUnwindSafe for Microhertz<T>where
T: RefUnwindSafe,
impl<T> Send for Microhertz<T>where
T: Send,
impl<T> Sync for Microhertz<T>where
T: Sync,
impl<T> Unpin for Microhertz<T>where
T: Unpin,
impl<T> UnwindSafe for Microhertz<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more