Struct embedded_time::rate::KilobytesPerSecond [−][src]
pub struct KilobytesPerSecond<T: TimeInt = u32>(pub T);
Expand description
Bytes/s × 1,000
Implementations
impl<T: TimeInt> KilobytesPerSecond<T>
[src]
impl<T: TimeInt> KilobytesPerSecond<T>
[src]Trait Implementations
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for KilobytesPerSecond<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
[src]
impl<T: TimeInt, Rhs: Rate> Add<Rhs> for KilobytesPerSecond<T> where
Rhs: FixedPoint,
Self: TryFrom<Rhs>,
[src]impl<T: Clone + TimeInt> Clone for KilobytesPerSecond<T>
[src]
impl<T: Clone + TimeInt> Clone for KilobytesPerSecond<T>
[src]fn clone(&self) -> KilobytesPerSecond<T>
[src]
fn clone(&self) -> KilobytesPerSecond<T>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<T: Debug + TimeInt> Debug for KilobytesPerSecond<T>
[src]
impl<T: Debug + TimeInt> Debug for KilobytesPerSecond<T>
[src]impl<T: Default + TimeInt> Default for KilobytesPerSecond<T>
[src]
impl<T: Default + TimeInt> Default for KilobytesPerSecond<T>
[src]fn default() -> KilobytesPerSecond<T>
[src]
fn default() -> KilobytesPerSecond<T>
[src]Returns the “default value” for a type. Read more
impl<T: TimeInt> Display for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> Display for KilobytesPerSecond<T>
[src]fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]
fn fmt(&self, f: &mut Formatter<'_>) -> Result
[src]See Formatting
impl<T: TimeInt> Div<T> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> Div<T> for KilobytesPerSecond<T>
[src]impl<T: TimeInt> FixedPoint for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> FixedPoint for KilobytesPerSecond<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: TimeInt> From<BitsPerSecond<T>> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> From<BitsPerSecond<T>> for KilobytesPerSecond<T>
[src]fn from(small: BitsPerSecond<T>) -> Self
[src]
fn from(small: BitsPerSecond<T>) -> Self
[src]impl From<BitsPerSecond<u32>> for KilobytesPerSecond<u64>
[src]
impl From<BitsPerSecond<u32>> for KilobytesPerSecond<u64>
[src]fn from(small: BitsPerSecond<u32>) -> Self
[src]
fn from(small: BitsPerSecond<u32>) -> Self
[src]impl<T: TimeInt> From<BytesPerSecond<T>> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> From<BytesPerSecond<T>> for KilobytesPerSecond<T>
[src]fn from(small: BytesPerSecond<T>) -> Self
[src]
fn from(small: BytesPerSecond<T>) -> Self
[src]impl From<BytesPerSecond<u32>> for KilobytesPerSecond<u64>
[src]
impl From<BytesPerSecond<u32>> for KilobytesPerSecond<u64>
[src]fn from(small: BytesPerSecond<u32>) -> Self
[src]
fn from(small: BytesPerSecond<u32>) -> Self
[src]impl<T: TimeInt> From<KilobitsPerSecond<T>> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> From<KilobitsPerSecond<T>> for KilobytesPerSecond<T>
[src]fn from(small: KilobitsPerSecond<T>) -> Self
[src]
fn from(small: KilobitsPerSecond<T>) -> Self
[src]impl From<KilobitsPerSecond<u32>> for KilobytesPerSecond<u64>
[src]
impl From<KilobitsPerSecond<u32>> for KilobytesPerSecond<u64>
[src]fn from(small: KilobitsPerSecond<u32>) -> Self
[src]
fn from(small: KilobitsPerSecond<u32>) -> Self
[src]impl<T: TimeInt> From<KilobytesPerSecond<T>> for Generic<T>
[src]
impl<T: TimeInt> From<KilobytesPerSecond<T>> for Generic<T>
[src]fn from(rate: KilobytesPerSecond<T>) -> Self
[src]
fn from(rate: KilobytesPerSecond<T>) -> Self
[src]impl<T: TimeInt> From<KilobytesPerSecond<T>> for MegabytesPerSecond<T>
[src]
impl<T: TimeInt> From<KilobytesPerSecond<T>> for MegabytesPerSecond<T>
[src]fn from(small: KilobytesPerSecond<T>) -> Self
[src]
fn from(small: KilobytesPerSecond<T>) -> Self
[src]impl<T: TimeInt> From<KilobytesPerSecond<T>> for MegabitsPerSecond<T>
[src]
impl<T: TimeInt> From<KilobytesPerSecond<T>> for MegabitsPerSecond<T>
[src]fn from(small: KilobytesPerSecond<T>) -> Self
[src]
fn from(small: KilobytesPerSecond<T>) -> Self
[src]impl From<KilobytesPerSecond<u32>> for MegabytesPerSecond<u64>
[src]
impl From<KilobytesPerSecond<u32>> for MegabytesPerSecond<u64>
[src]fn from(small: KilobytesPerSecond<u32>) -> Self
[src]
fn from(small: KilobytesPerSecond<u32>) -> Self
[src]impl From<KilobytesPerSecond<u32>> for MegabitsPerSecond<u64>
[src]
impl From<KilobytesPerSecond<u32>> for MegabitsPerSecond<u64>
[src]fn from(small: KilobytesPerSecond<u32>) -> Self
[src]
fn from(small: KilobytesPerSecond<u32>) -> Self
[src]impl From<KilobytesPerSecond<u32>> for KilobytesPerSecond<u64>
[src]
impl From<KilobytesPerSecond<u32>> for KilobytesPerSecond<u64>
[src]fn from(source: KilobytesPerSecond<u32>) -> Self
[src]
fn from(source: KilobytesPerSecond<u32>) -> Self
[src]impl From<KilobytesPerSecond<u32>> for KilobitsPerSecond<u64>
[src]
impl From<KilobytesPerSecond<u32>> for KilobitsPerSecond<u64>
[src]fn from(big: KilobytesPerSecond<u32>) -> Self
[src]
fn from(big: KilobytesPerSecond<u32>) -> Self
[src]impl From<KilobytesPerSecond<u32>> for BytesPerSecond<u64>
[src]
impl From<KilobytesPerSecond<u32>> for BytesPerSecond<u64>
[src]fn from(big: KilobytesPerSecond<u32>) -> Self
[src]
fn from(big: KilobytesPerSecond<u32>) -> Self
[src]impl From<KilobytesPerSecond<u32>> for BitsPerSecond<u64>
[src]
impl From<KilobytesPerSecond<u32>> for BitsPerSecond<u64>
[src]fn from(big: KilobytesPerSecond<u32>) -> Self
[src]
fn from(big: KilobytesPerSecond<u32>) -> Self
[src]impl From<MegabitsPerSecond<u32>> for KilobytesPerSecond<u64>
[src]
impl From<MegabitsPerSecond<u32>> for KilobytesPerSecond<u64>
[src]fn from(big: MegabitsPerSecond<u32>) -> Self
[src]
fn from(big: MegabitsPerSecond<u32>) -> Self
[src]impl From<MegabytesPerSecond<u32>> for KilobytesPerSecond<u64>
[src]
impl From<MegabytesPerSecond<u32>> for KilobytesPerSecond<u64>
[src]fn from(big: MegabytesPerSecond<u32>) -> Self
[src]
fn from(big: MegabytesPerSecond<u32>) -> Self
[src]impl<T: Hash + TimeInt> Hash for KilobytesPerSecond<T>
[src]
impl<T: Hash + TimeInt> Hash for KilobytesPerSecond<T>
[src]impl<T: TimeInt> Mul<T> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> Mul<T> for KilobytesPerSecond<T>
[src]impl<T: Ord + TimeInt> Ord for KilobytesPerSecond<T>
[src]
impl<T: Ord + TimeInt> Ord for KilobytesPerSecond<T>
[src]impl<T: TimeInt, RhsInt: TimeInt> PartialEq<BitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BitsPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<BitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BitsPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>,
[src]fn eq(&self, rhs: &BitsPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &BitsPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<BytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BytesPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<BytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BytesPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>,
[src]fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
KilobitsPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
KilobitsPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>,
[src]fn eq(&self, rhs: &KilobitsPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobitsPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
KilobytesPerSecond<RhsInt>: PartialEq<MegabytesPerSecond<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
KilobytesPerSecond<RhsInt>: PartialEq<MegabytesPerSecond<T>>,
[src]fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
KilobytesPerSecond<RhsInt>: PartialEq<MegabitsPerSecond<T>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
KilobytesPerSecond<RhsInt>: PartialEq<MegabitsPerSecond<T>>,
[src]fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
T: TryFrom<RhsInt>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
T: TryFrom<RhsInt>,
[src]fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for BytesPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for BytesPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for BitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<KilobytesPerSecond<RhsInt>> for BitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<MegabitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabitsPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<MegabitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabitsPerSecond<RhsInt>>,
[src]fn eq(&self, rhs: &MegabitsPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &MegabitsPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<MegabytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialEq<MegabytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabytesPerSecond<RhsInt>>,
[src]fn eq(&self, rhs: &MegabytesPerSecond<RhsInt>) -> bool
[src]
fn eq(&self, rhs: &MegabytesPerSecond<RhsInt>) -> bool
[src]See Comparisons
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<BitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BitsPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<BitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BitsPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &BitsPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &BitsPerSecond<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<BytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BytesPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<BytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
BytesPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &BytesPerSecond<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<KilobitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
KilobitsPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
KilobitsPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &KilobitsPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobitsPerSecond<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<KilobytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
KilobytesPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
KilobytesPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobytesPerSecond<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<KilobytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
KilobytesPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
KilobytesPerSecond<RhsInt>: TryFrom<Self> + Ord,
[src]fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobytesPerSecond<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<KilobytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
T: TryFrom<RhsInt>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
T: TryFrom<RhsInt>,
[src]fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobytesPerSecond<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<KilobytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobytesPerSecond<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<KilobytesPerSecond<RhsInt>> for BytesPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobytesPerSecond<RhsInt>> for BytesPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobytesPerSecond<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<KilobytesPerSecond<RhsInt>> for BitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<KilobytesPerSecond<RhsInt>> for BitsPerSecond<T> where
Self: TryFrom<KilobytesPerSecond<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &KilobytesPerSecond<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<MegabitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabitsPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<MegabitsPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabitsPerSecond<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &MegabitsPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &MegabitsPerSecond<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<MegabytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabytesPerSecond<RhsInt>>,
[src]
impl<T: TimeInt, RhsInt: TimeInt> PartialOrd<MegabytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
Self: TryFrom<MegabytesPerSecond<RhsInt>>,
[src]fn partial_cmp(&self, rhs: &MegabytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
fn partial_cmp(&self, rhs: &MegabytesPerSecond<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 KilobytesPerSecond<T>
[src]
impl<T: TimeInt> Rate for KilobytesPerSecond<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 KilobytesPerSecond<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]
impl<T: TimeInt, Rhs: Rate> Rem<Rhs> for KilobytesPerSecond<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for KilobytesPerSecond<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]
impl<T: TimeInt, Rhs: Rate> Sub<Rhs> for KilobytesPerSecond<T> where
Self: TryFrom<Rhs>,
Rhs: FixedPoint,
[src]impl TryFrom<BitsPerSecond<u64>> for KilobytesPerSecond<u32>
[src]
impl TryFrom<BitsPerSecond<u64>> for KilobytesPerSecond<u32>
[src]fn try_from(small: BitsPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: BitsPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<BytesPerSecond<u64>> for KilobytesPerSecond<u32>
[src]
impl TryFrom<BytesPerSecond<u64>> for KilobytesPerSecond<u32>
[src]fn try_from(small: BytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: BytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for KilobytesPerSecond<DestInt> where
DestInt: TryFrom<SourceInt>,
[src]
impl<SourceInt: TimeInt, DestInt: TimeInt> TryFrom<Generic<SourceInt>> for KilobytesPerSecond<DestInt> where
DestInt: TryFrom<SourceInt>,
[src]impl TryFrom<KilobitsPerSecond<u64>> for KilobytesPerSecond<u32>
[src]
impl TryFrom<KilobitsPerSecond<u64>> for KilobytesPerSecond<u32>
[src]fn try_from(small: KilobitsPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: KilobitsPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<KilobytesPerSecond<T>> for KilobitsPerSecond<T>
[src]
impl<T: TimeInt> TryFrom<KilobytesPerSecond<T>> for KilobitsPerSecond<T>
[src]fn try_from(big: KilobytesPerSecond<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: KilobytesPerSecond<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<KilobytesPerSecond<T>> for BytesPerSecond<T>
[src]
impl<T: TimeInt> TryFrom<KilobytesPerSecond<T>> for BytesPerSecond<T>
[src]fn try_from(big: KilobytesPerSecond<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: KilobytesPerSecond<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<KilobytesPerSecond<T>> for BitsPerSecond<T>
[src]
impl<T: TimeInt> TryFrom<KilobytesPerSecond<T>> for BitsPerSecond<T>
[src]fn try_from(big: KilobytesPerSecond<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: KilobytesPerSecond<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<KilobytesPerSecond<u64>> for MegabytesPerSecond<u32>
[src]
impl TryFrom<KilobytesPerSecond<u64>> for MegabytesPerSecond<u32>
[src]fn try_from(small: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<KilobytesPerSecond<u64>> for MegabitsPerSecond<u32>
[src]
impl TryFrom<KilobytesPerSecond<u64>> for MegabitsPerSecond<u32>
[src]fn try_from(small: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(small: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<KilobytesPerSecond<u64>> for KilobytesPerSecond<u32>
[src]
impl TryFrom<KilobytesPerSecond<u64>> for KilobytesPerSecond<u32>
[src]fn try_from(source: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(source: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<KilobytesPerSecond<u64>> for KilobitsPerSecond<u32>
[src]
impl TryFrom<KilobytesPerSecond<u64>> for KilobitsPerSecond<u32>
[src]fn try_from(big: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<KilobytesPerSecond<u64>> for BytesPerSecond<u32>
[src]
impl TryFrom<KilobytesPerSecond<u64>> for BytesPerSecond<u32>
[src]fn try_from(big: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<KilobytesPerSecond<u64>> for BitsPerSecond<u32>
[src]
impl TryFrom<KilobytesPerSecond<u64>> for BitsPerSecond<u32>
[src]fn try_from(big: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: KilobytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<MegabitsPerSecond<T>> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> TryFrom<MegabitsPerSecond<T>> for KilobytesPerSecond<T>
[src]fn try_from(big: MegabitsPerSecond<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: MegabitsPerSecond<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<MegabitsPerSecond<u64>> for KilobytesPerSecond<u32>
[src]
impl TryFrom<MegabitsPerSecond<u64>> for KilobytesPerSecond<u32>
[src]fn try_from(big: MegabitsPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: MegabitsPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: TimeInt> TryFrom<MegabytesPerSecond<T>> for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> TryFrom<MegabytesPerSecond<T>> for KilobytesPerSecond<T>
[src]fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>
[src]
fn try_from(big: MegabytesPerSecond<T>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl TryFrom<MegabytesPerSecond<u64>> for KilobytesPerSecond<u32>
[src]
impl TryFrom<MegabytesPerSecond<u64>> for KilobytesPerSecond<u32>
[src]fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]
fn try_from(big: MegabytesPerSecond<u64>) -> Result<Self, Self::Error>
[src]type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl<T: Copy + TimeInt> Copy for KilobytesPerSecond<T>
[src]
impl<T: Eq + TimeInt> Eq for KilobytesPerSecond<T>
[src]
impl<T: TimeInt> StructuralEq for KilobytesPerSecond<T>
[src]
Auto Trait Implementations
impl<T> Send for KilobytesPerSecond<T> where
T: Send,
T: Send,
impl<T> Sync for KilobytesPerSecond<T> where
T: Sync,
T: Sync,
impl<T> Unpin for KilobytesPerSecond<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>,