pub struct Kilobaud<T = u32>(pub T)
where
T: TimeInt;Expand description
Baud × 1,000
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl<T> FixedPoint for Kilobaud<T>where
T: TimeInt,
impl<T> FixedPoint for Kilobaud<T>where
T: TimeInt,
Source§const SCALING_FACTOR: Fraction
const SCALING_FACTOR: Fraction
The fractional scaling factor
Source§fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
Multiply with overflow checking
Source§fn checked_div(&self, rhs: &Self::T) -> Option<Self>
fn checked_div(&self, rhs: &Self::T) -> Option<Self>
Multiply with overflow checking
Source§impl<T> Ord for Kilobaud<T>
impl<T> Ord for Kilobaud<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, RhsInt> PartialOrd<Baud<RhsInt>> for Kilobaud<T>
impl<T, RhsInt> PartialOrd<Baud<RhsInt>> for Kilobaud<T>
Source§impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Baud<T>
impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Baud<T>
Source§impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Kilobaud<T>
impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Kilobaud<T>
Source§impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Megabaud<T>
impl<T, RhsInt> PartialOrd<Kilobaud<RhsInt>> for Megabaud<T>
Source§impl<T, RhsInt> PartialOrd<Megabaud<RhsInt>> for Kilobaud<T>
impl<T, RhsInt> PartialOrd<Megabaud<RhsInt>> for Kilobaud<T>
Source§impl<T> Rate for Kilobaud<T>where
T: TimeInt,
impl<T> Rate for Kilobaud<T>where
T: TimeInt,
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>where
Duration: Duration + FixedPoint,
Self: FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
fn to_duration<Duration>(&self) -> Result<Duration, ConversionError>where
Duration: Duration + FixedPoint,
Self: FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
impl<T> Copy for Kilobaud<T>
impl<T> Eq for Kilobaud<T>
Auto Trait Implementations§
impl<T> Freeze for Kilobaud<T>where
T: Freeze,
impl<T> RefUnwindSafe for Kilobaud<T>where
T: RefUnwindSafe,
impl<T> Send for Kilobaud<T>where
T: Send,
impl<T> Sync for Kilobaud<T>where
T: Sync,
impl<T> Unpin for Kilobaud<T>where
T: Unpin,
impl<T> UnwindSafe for Kilobaud<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