Struct drv8825::embedded_time::rate::MebibytesPerSecond [−][src]
Bytes/s × 1,048,576
Implementations
impl<T> MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn new(value: T) -> MebibytesPerSecond<T>
[src]
Trait Implementations
impl<T, Rhs> Add<Rhs> for MebibytesPerSecond<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
MebibytesPerSecond<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
MebibytesPerSecond<T>: TryFrom<Rhs>,
type Output = MebibytesPerSecond<T>
The resulting type after applying the +
operator.
pub fn add(self, rhs: Rhs) -> <MebibytesPerSecond<T> as Add<Rhs>>::Output
[src]
See Add/Sub
impl<T> Clone for MebibytesPerSecond<T> where
T: TimeInt + Clone,
[src]
T: TimeInt + Clone,
pub fn clone(&self) -> MebibytesPerSecond<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for MebibytesPerSecond<T> where
T: TimeInt + Copy,
[src]
T: TimeInt + Copy,
impl<T> Debug for MebibytesPerSecond<T> where
T: TimeInt + Debug,
[src]
T: TimeInt + Debug,
impl<T> Default for MebibytesPerSecond<T> where
T: TimeInt + Default,
[src]
T: TimeInt + Default,
pub fn default() -> MebibytesPerSecond<T>
[src]
impl<T> Display for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T> Div<T> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Output = MebibytesPerSecond<T>
The resulting type after applying the /
operator.
pub fn div(self, rhs: T) -> <MebibytesPerSecond<T> as Div<T>>::Output
[src]
See Mul/Div
impl<T> Eq for MebibytesPerSecond<T> where
T: TimeInt + Eq,
[src]
T: TimeInt + Eq,
impl<T> FixedPoint for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type T = T
The integer (magnitude) type
pub const SCALING_FACTOR: Fraction
[src]
pub fn new(
value: <MebibytesPerSecond<T> as FixedPoint>::T
) -> MebibytesPerSecond<T>
[src]
value: <MebibytesPerSecond<T> as FixedPoint>::T
) -> MebibytesPerSecond<T>
pub fn integer(&self) -> &<MebibytesPerSecond<T> as FixedPoint>::T
[src]
pub fn checked_mul(&self, rhs: &Self::T) -> Option<Self>
[src]
pub fn checked_div(&self, rhs: &Self::T) -> Option<Self>
[src]
pub fn min_value() -> Self::T
[src]
pub fn max_value() -> Self::T
[src]
impl<T> From<BitsPerSecond<T>> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: BitsPerSecond<T>) -> MebibytesPerSecond<T>
[src]
impl From<BitsPerSecond<u32>> for MebibytesPerSecond<u64>
[src]
pub fn from(small: BitsPerSecond<u32>) -> MebibytesPerSecond<u64>
[src]
impl<T> From<BytesPerSecond<T>> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: BytesPerSecond<T>) -> MebibytesPerSecond<T>
[src]
impl From<BytesPerSecond<u32>> for MebibytesPerSecond<u64>
[src]
pub fn from(small: BytesPerSecond<u32>) -> MebibytesPerSecond<u64>
[src]
impl<T> From<KibibitsPerSecond<T>> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: KibibitsPerSecond<T>) -> MebibytesPerSecond<T>
[src]
impl From<KibibitsPerSecond<u32>> for MebibytesPerSecond<u64>
[src]
pub fn from(small: KibibitsPerSecond<u32>) -> MebibytesPerSecond<u64>
[src]
impl<T> From<KibibytesPerSecond<T>> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: KibibytesPerSecond<T>) -> MebibytesPerSecond<T>
[src]
impl From<KibibytesPerSecond<u32>> for MebibytesPerSecond<u64>
[src]
pub fn from(small: KibibytesPerSecond<u32>) -> MebibytesPerSecond<u64>
[src]
impl<T> From<MebibitsPerSecond<T>> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(small: MebibitsPerSecond<T>) -> MebibytesPerSecond<T>
[src]
impl From<MebibitsPerSecond<u32>> for MebibytesPerSecond<u64>
[src]
pub fn from(small: MebibitsPerSecond<u32>) -> MebibytesPerSecond<u64>
[src]
impl<T> From<MebibytesPerSecond<T>> for Generic<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn from(rate: MebibytesPerSecond<T>) -> Generic<T>
[src]
impl From<MebibytesPerSecond<u32>> for KibibitsPerSecond<u64>
[src]
pub fn from(big: MebibytesPerSecond<u32>) -> KibibitsPerSecond<u64>
[src]
impl From<MebibytesPerSecond<u32>> for BytesPerSecond<u64>
[src]
pub fn from(big: MebibytesPerSecond<u32>) -> BytesPerSecond<u64>
[src]
impl From<MebibytesPerSecond<u32>> for MebibitsPerSecond<u64>
[src]
pub fn from(big: MebibytesPerSecond<u32>) -> MebibitsPerSecond<u64>
[src]
impl From<MebibytesPerSecond<u32>> for BitsPerSecond<u64>
[src]
pub fn from(big: MebibytesPerSecond<u32>) -> BitsPerSecond<u64>
[src]
impl From<MebibytesPerSecond<u32>> for MebibytesPerSecond<u64>
[src]
pub fn from(source: MebibytesPerSecond<u32>) -> MebibytesPerSecond<u64>
[src]
impl From<MebibytesPerSecond<u32>> for KibibytesPerSecond<u64>
[src]
pub fn from(big: MebibytesPerSecond<u32>) -> KibibytesPerSecond<u64>
[src]
impl<T> Hash for MebibytesPerSecond<T> where
T: TimeInt + Hash,
[src]
T: TimeInt + Hash,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Mul<T> for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Output = MebibytesPerSecond<T>
The resulting type after applying the *
operator.
pub fn mul(self, rhs: T) -> <MebibytesPerSecond<T> as Mul<T>>::Output
[src]
See Mul/Div
impl<T> Ord for MebibytesPerSecond<T> where
T: TimeInt + Ord,
[src]
T: TimeInt + Ord,
pub fn cmp(&self, other: &MebibytesPerSecond<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T, RhsInt> PartialEq<BitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
pub fn eq(&self, rhs: &BitsPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
pub fn eq(&self, rhs: &KibibitsPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<KibibytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
pub fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>,
pub fn eq(&self, rhs: &MebibitsPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for BitsPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for MebibitsPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool
[src]
See Comparisons
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<BitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
BitsPerSecond<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
BitsPerSecond<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &BitsPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
BytesPerSecond<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
BytesPerSecond<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<KibibitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
KibibitsPerSecond<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
KibibitsPerSecond<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &KibibitsPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<KibibytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
KibibytesPerSecond<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
KibibytesPerSecond<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibitsPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
MebibitsPerSecond<RhsInt>: Ord,
[src]
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
MebibitsPerSecond<RhsInt>: Ord,
pub fn partial_cmp(&self, rhs: &MebibitsPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for MebibitsPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
MebibitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for BitsPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
BitsPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
KibibytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
[src]
T: TimeInt,
RhsInt: TimeInt,
BytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>,
pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
[src]
T: TimeInt + TryFrom<RhsInt>,
RhsInt: TimeInt,
pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>
[src]
See Comparisons
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Rate for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
pub fn to_generic<DestInt>(
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
[src]
self,
scaling_factor: Fraction
) -> Result<Generic<DestInt>, ConversionError> where
Self: FixedPoint,
DestInt: TimeInt + TryFrom<Self::T>,
pub fn to_duration<Duration>(&self) -> Result<Duration, ConversionError> where
Self: FixedPoint,
Duration: Duration + FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
[src]
Self: FixedPoint,
Duration: Duration + FixedPoint,
<Duration as FixedPoint>::T: TryFrom<Self::T>,
impl<T, Rhs> Rem<Rhs> for MebibytesPerSecond<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
MebibytesPerSecond<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
MebibytesPerSecond<T>: TryFrom<Rhs>,
type Output = MebibytesPerSecond<T>
The resulting type after applying the %
operator.
pub fn rem(self, rhs: Rhs) -> <MebibytesPerSecond<T> as Rem<Rhs>>::Output
[src]
See Remainder
impl<T> StructuralEq for MebibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
impl<T, Rhs> Sub<Rhs> for MebibytesPerSecond<T> where
T: TimeInt,
Rhs: Rate + FixedPoint,
MebibytesPerSecond<T>: TryFrom<Rhs>,
[src]
T: TimeInt,
Rhs: Rate + FixedPoint,
MebibytesPerSecond<T>: TryFrom<Rhs>,
type Output = MebibytesPerSecond<T>
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Rhs) -> <MebibytesPerSecond<T> as Sub<Rhs>>::Output
[src]
See Add/Sub
impl TryFrom<BitsPerSecond<u64>> for MebibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: BitsPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<BitsPerSecond<u64>>>::Error>
[src]
small: BitsPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<BitsPerSecond<u64>>>::Error>
impl TryFrom<BytesPerSecond<u64>> for MebibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: BytesPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]
small: BytesPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for MebibytesPerSecond<DestInt> where
DestInt: TimeInt + TryFrom<SourceInt>,
SourceInt: TimeInt,
[src]
DestInt: TimeInt + TryFrom<SourceInt>,
SourceInt: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
generic_rate: Generic<SourceInt>
) -> Result<MebibytesPerSecond<DestInt>, <MebibytesPerSecond<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
[src]
generic_rate: Generic<SourceInt>
) -> Result<MebibytesPerSecond<DestInt>, <MebibytesPerSecond<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
impl TryFrom<KibibitsPerSecond<u64>> for MebibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: KibibitsPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<KibibitsPerSecond<u64>>>::Error>
[src]
small: KibibitsPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<KibibitsPerSecond<u64>>>::Error>
impl TryFrom<KibibytesPerSecond<u64>> for MebibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: KibibytesPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<KibibytesPerSecond<u64>>>::Error>
[src]
small: KibibytesPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<KibibytesPerSecond<u64>>>::Error>
impl TryFrom<MebibitsPerSecond<u64>> for MebibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
small: MebibitsPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<MebibitsPerSecond<u64>>>::Error>
[src]
small: MebibitsPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<MebibitsPerSecond<u64>>>::Error>
impl<T> TryFrom<MebibytesPerSecond<T>> for BitsPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<T>
) -> Result<BitsPerSecond<T>, <BitsPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
[src]
big: MebibytesPerSecond<T>
) -> Result<BitsPerSecond<T>, <BitsPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
impl<T> TryFrom<MebibytesPerSecond<T>> for KibibytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<T>
) -> Result<KibibytesPerSecond<T>, <KibibytesPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
[src]
big: MebibytesPerSecond<T>
) -> Result<KibibytesPerSecond<T>, <KibibytesPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
impl<T> TryFrom<MebibytesPerSecond<T>> for BytesPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
[src]
big: MebibytesPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
impl<T> TryFrom<MebibytesPerSecond<T>> for MebibitsPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<T>
) -> Result<MebibitsPerSecond<T>, <MebibitsPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
[src]
big: MebibytesPerSecond<T>
) -> Result<MebibitsPerSecond<T>, <MebibitsPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
impl<T> TryFrom<MebibytesPerSecond<T>> for KibibitsPerSecond<T> where
T: TimeInt,
[src]
T: TimeInt,
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<T>
) -> Result<KibibitsPerSecond<T>, <KibibitsPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
[src]
big: MebibytesPerSecond<T>
) -> Result<KibibitsPerSecond<T>, <KibibitsPerSecond<T> as TryFrom<MebibytesPerSecond<T>>>::Error>
impl TryFrom<MebibytesPerSecond<u64>> for KibibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<u64>
) -> Result<KibibytesPerSecond<u32>, <KibibytesPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
[src]
big: MebibytesPerSecond<u64>
) -> Result<KibibytesPerSecond<u32>, <KibibytesPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
impl TryFrom<MebibytesPerSecond<u64>> for MebibytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
source: MebibytesPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
[src]
source: MebibytesPerSecond<u64>
) -> Result<MebibytesPerSecond<u32>, <MebibytesPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
impl TryFrom<MebibytesPerSecond<u64>> for MebibitsPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<u64>
) -> Result<MebibitsPerSecond<u32>, <MebibitsPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
[src]
big: MebibytesPerSecond<u64>
) -> Result<MebibitsPerSecond<u32>, <MebibitsPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
impl TryFrom<MebibytesPerSecond<u64>> for KibibitsPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<u64>
) -> Result<KibibitsPerSecond<u32>, <KibibitsPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
[src]
big: MebibytesPerSecond<u64>
) -> Result<KibibitsPerSecond<u32>, <KibibitsPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
impl TryFrom<MebibytesPerSecond<u64>> for BytesPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
[src]
big: MebibytesPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
impl TryFrom<MebibytesPerSecond<u64>> for BitsPerSecond<u32>
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
pub fn try_from(
big: MebibytesPerSecond<u64>
) -> Result<BitsPerSecond<u32>, <BitsPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
[src]
big: MebibytesPerSecond<u64>
) -> Result<BitsPerSecond<u32>, <BitsPerSecond<u32> as TryFrom<MebibytesPerSecond<u64>>>::Error>
Auto Trait Implementations
impl<T> Send for MebibytesPerSecond<T> where
T: Send,
T: Send,
impl<T> Sync for MebibytesPerSecond<T> where
T: Sync,
T: Sync,
impl<T> Unpin for MebibytesPerSecond<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
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>,
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,