pub struct Centihertz<T: TimeInt = u32>(pub T);Expand description
Hertz / 100
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl<T: TimeInt, Rhs> Add<Rhs> for Centihertz<T>
impl<T: TimeInt, Rhs> Add<Rhs> for Centihertz<T>
Source§impl<T: Clone + TimeInt> Clone for Centihertz<T>
impl<T: Clone + TimeInt> Clone for Centihertz<T>
Source§fn clone(&self) -> Centihertz<T>
fn clone(&self) -> Centihertz<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 Centihertz<T>
impl<T: Default + TimeInt> Default for Centihertz<T>
Source§fn default() -> Centihertz<T>
fn default() -> Centihertz<T>
Returns the “default value” for a type. Read more
Source§impl<T: TimeInt> Display for Centihertz<T>
impl<T: TimeInt> Display for Centihertz<T>
Source§impl<T: TimeInt> Div<T> for Centihertz<T>
impl<T: TimeInt> Div<T> for Centihertz<T>
Source§impl<T: TimeInt> FixedPoint for Centihertz<T>
impl<T: TimeInt> FixedPoint for Centihertz<T>
Source§impl<T: TimeInt> From<Centihertz<T>> for Generic<T>
impl<T: TimeInt> From<Centihertz<T>> for Generic<T>
Source§fn from(rate: Centihertz<T>) -> Self
fn from(rate: Centihertz<T>) -> Self
Source§impl From<Centihertz> for Centihertz<u64>
impl From<Centihertz> for Centihertz<u64>
Source§fn from(source: Centihertz<u32>) -> Self
fn from(source: Centihertz<u32>) -> Self
Source§impl<T: TimeInt> Mul<T> for Centihertz<T>
impl<T: TimeInt> Mul<T> for Centihertz<T>
Source§impl<T: Ord + TimeInt> Ord for Centihertz<T>
impl<T: Ord + TimeInt> Ord for Centihertz<T>
Source§fn cmp(&self, other: &Centihertz<T>) -> Ordering
fn cmp(&self, other: &Centihertz<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, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Centihertz<T>
impl<T, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Centihertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Centihertz<RhsInt>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<Centihertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Centihertz<RhsInt>>,
Source§impl<T, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Centihertz<T>
impl<T, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Centihertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Centihertz<RhsInt>>,
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Centihertz<RhsInt>> for Hertz<T>where
Self: TryFrom<Centihertz<RhsInt>>,
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Centihertz<T>
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Centihertz<T>
Source§impl<T: TimeInt> Rate for Centihertz<T>
impl<T: TimeInt> Rate for Centihertz<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 Centihertz<T>
impl<T: TimeInt, Rhs> Rem<Rhs> for Centihertz<T>
Source§impl<T: TimeInt, Rhs> Sub<Rhs> for Centihertz<T>
impl<T: TimeInt, Rhs> Sub<Rhs> for Centihertz<T>
Source§impl<T: TimeInt> TryFrom<Centihertz<T>> for Hertz<T>
impl<T: TimeInt> TryFrom<Centihertz<T>> for Hertz<T>
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Centihertz<u64>> for Centihertz<u32>
impl TryFrom<Centihertz<u64>> for Centihertz<u32>
Source§impl TryFrom<Centihertz<u64>> for Hertz<u32>
impl TryFrom<Centihertz<u64>> for Hertz<u32>
impl<T: Copy + TimeInt> Copy for Centihertz<T>
impl<T: Eq + TimeInt> Eq for Centihertz<T>
Auto Trait Implementations§
impl<T> Freeze for Centihertz<T>where
T: Freeze,
impl<T> RefUnwindSafe for Centihertz<T>where
T: RefUnwindSafe,
impl<T> Send for Centihertz<T>where
T: Send,
impl<T> Sync for Centihertz<T>where
T: Sync,
impl<T> Unpin for Centihertz<T>where
T: Unpin,
impl<T> UnwindSafe for Centihertz<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