pub struct Kilohertz<T: TimeInt = u32>(pub T);Expand description
Hertz × 1,000
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl<T: TimeInt> FixedPoint for Kilohertz<T>
impl<T: TimeInt> FixedPoint for Kilohertz<T>
Source§impl<T: TimeInt> From<Kilohertz<T>> for Megahertz<T>
impl<T: TimeInt> From<Kilohertz<T>> for Megahertz<T>
Source§impl<T: Ord + TimeInt> Ord for Kilohertz<T>
impl<T: Ord + TimeInt> Ord for Kilohertz<T>
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> PartialOrd<Hertz<RhsInt>> for Kilohertz<T>
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Hertz<RhsInt>> for Kilohertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kilohertz<RhsInt>> for Hertz<T>
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kilohertz<RhsInt>> for Hertz<T>
Source§impl<T, RhsInt: TimeInt> PartialOrd<Kilohertz<RhsInt>> for Kilohertz<T>
impl<T, RhsInt: TimeInt> PartialOrd<Kilohertz<RhsInt>> for Kilohertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kilohertz<RhsInt>> for Megahertz<T>
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Kilohertz<RhsInt>> for Megahertz<T>
Source§impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Megahertz<RhsInt>> for Kilohertz<T>
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<Megahertz<RhsInt>> for Kilohertz<T>
Source§impl<T: TimeInt> Rate for Kilohertz<T>
impl<T: TimeInt> Rate for Kilohertz<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>
impl<T: Copy + TimeInt> Copy for Kilohertz<T>
impl<T: Eq + TimeInt> Eq for Kilohertz<T>
Auto Trait Implementations§
impl<T> Freeze for Kilohertz<T>where
T: Freeze,
impl<T> RefUnwindSafe for Kilohertz<T>where
T: RefUnwindSafe,
impl<T> Send for Kilohertz<T>where
T: Send,
impl<T> Sync for Kilohertz<T>where
T: Sync,
impl<T> Unpin for Kilohertz<T>where
T: Unpin,
impl<T> UnwindSafe for Kilohertz<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