Struct drv8825::embedded_time::rate::BytesPerSecond[][src]

pub struct BytesPerSecond<T = u32>(pub T)
where
    T: TimeInt
;

Bytes/s

Implementations

impl<T> BytesPerSecond<T> where
    T: TimeInt, 
[src]

pub fn new(value: T) -> BytesPerSecond<T>[src]

Trait Implementations

impl<T, Rhs> Add<Rhs> for BytesPerSecond<T> where
    T: TimeInt,
    Rhs: Rate + FixedPoint,
    BytesPerSecond<T>: TryFrom<Rhs>, 
[src]

type Output = BytesPerSecond<T>

The resulting type after applying the + operator.

pub fn add(self, rhs: Rhs) -> <BytesPerSecond<T> as Add<Rhs>>::Output[src]

See Add/Sub

impl<T> Clone for BytesPerSecond<T> where
    T: TimeInt + Clone
[src]

impl<T> Copy for BytesPerSecond<T> where
    T: TimeInt + Copy
[src]

impl<T> Debug for BytesPerSecond<T> where
    T: TimeInt + Debug
[src]

impl<T> Default for BytesPerSecond<T> where
    T: TimeInt + Default
[src]

impl<T> Display for BytesPerSecond<T> where
    T: TimeInt, 
[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

impl<T> Div<T> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Output = BytesPerSecond<T>

The resulting type after applying the / operator.

pub fn div(self, rhs: T) -> <BytesPerSecond<T> as Div<T>>::Output[src]

See Mul/Div

impl<T> Eq for BytesPerSecond<T> where
    T: TimeInt + Eq
[src]

impl<T> FixedPoint for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type T = T

The integer (magnitude) type

pub fn new(value: <BytesPerSecond<T> as FixedPoint>::T) -> BytesPerSecond<T>[src]

pub fn integer(&self) -> &<BytesPerSecond<T> as FixedPoint>::T[src]

impl<T> From<BitsPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

impl From<BitsPerSecond<u32>> for BytesPerSecond<u64>[src]

impl<T> From<BytesPerSecond<T>> for MebibitsPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for MegabytesPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for KilobitsPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for Generic<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for KibibitsPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for KilobytesPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for MegabitsPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for KibibytesPerSecond<T> where
    T: TimeInt, 
[src]

impl<T> From<BytesPerSecond<T>> for MebibytesPerSecond<T> where
    T: TimeInt, 
[src]

impl From<BytesPerSecond<u32>> for KilobitsPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for BitsPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for MebibitsPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for MegabytesPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for KibibytesPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for MegabitsPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for MebibytesPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for KibibitsPerSecond<u64>[src]

impl From<BytesPerSecond<u32>> for KilobytesPerSecond<u64>[src]

impl From<KibibitsPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<KibibytesPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<KilobitsPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<KilobytesPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<MebibitsPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<MebibytesPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<MegabitsPerSecond<u32>> for BytesPerSecond<u64>[src]

impl From<MegabytesPerSecond<u32>> for BytesPerSecond<u64>[src]

impl<T> Hash for BytesPerSecond<T> where
    T: TimeInt + Hash
[src]

impl<T> Mul<T> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Output = BytesPerSecond<T>

The resulting type after applying the * operator.

pub fn mul(self, rhs: T) -> <BytesPerSecond<T> as Mul<T>>::Output[src]

See Mul/Div

impl<T> Ord for BytesPerSecond<T> where
    T: TimeInt + Ord
[src]

impl<T, RhsInt> PartialEq<BitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<RhsInt>: PartialEq<BytesPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BitsPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<MebibytesPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<MegabitsPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<MegabytesPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt + TryFrom<RhsInt>,
    RhsInt: TimeInt, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<KibibitsPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for BitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<T>: TryFrom<BytesPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<KilobitsPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for MebibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<MebibitsPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<KilobytesPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<BytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: PartialEq<KibibytesPerSecond<T>>, 
[src]

pub fn eq(&self, rhs: &BytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<KibibitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KibibitsPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &KibibitsPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<KibibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &KibibytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<KilobitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KilobitsPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &KilobitsPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<KilobytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KilobytesPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &KilobytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<MebibitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MebibitsPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &MebibitsPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<MebibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &MebibytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<MegabitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MegabitsPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &MegabitsPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialEq<MegabytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MegabytesPerSecond<RhsInt>>, 
[src]

pub fn eq(&self, rhs: &MegabytesPerSecond<RhsInt>) -> bool[src]

impl<T, RhsInt> PartialOrd<BitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<RhsInt>: TryFrom<BytesPerSecond<T>>,
    BitsPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for MebibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<MebibitsPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for MegabytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<MegabytesPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for MebibytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<MebibytesPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for KibibytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<KibibytesPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt + TryFrom<RhsInt>,
    RhsInt: TimeInt, 
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for KilobitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<KilobitsPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for KibibitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<KibibitsPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for BitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BitsPerSecond<T>: TryFrom<BytesPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for MegabitsPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<MegabitsPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<BytesPerSecond<RhsInt>> for KilobytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<RhsInt>: TryFrom<KilobytesPerSecond<T>>,
    BytesPerSecond<RhsInt>: Ord
[src]

pub fn partial_cmp(&self, rhs: &BytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<KibibitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KibibitsPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &KibibitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<KibibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KibibytesPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &KibibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<KilobitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KilobitsPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &KilobitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<KilobytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<KilobytesPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &KilobytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<MebibitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MebibitsPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &MebibitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<MebibytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MebibytesPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &MebibytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<MegabitsPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MegabitsPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &MegabitsPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T, RhsInt> PartialOrd<MegabytesPerSecond<RhsInt>> for BytesPerSecond<T> where
    T: TimeInt,
    RhsInt: TimeInt,
    BytesPerSecond<T>: TryFrom<MegabytesPerSecond<RhsInt>>, 
[src]

pub fn partial_cmp(&self, rhs: &MegabytesPerSecond<RhsInt>) -> Option<Ordering>[src]

impl<T> Rate for BytesPerSecond<T> where
    T: TimeInt, 
[src]

impl<T, Rhs> Rem<Rhs> for BytesPerSecond<T> where
    T: TimeInt,
    Rhs: Rate + FixedPoint,
    BytesPerSecond<T>: TryFrom<Rhs>, 
[src]

type Output = BytesPerSecond<T>

The resulting type after applying the % operator.

pub fn rem(self, rhs: Rhs) -> <BytesPerSecond<T> as Rem<Rhs>>::Output[src]

impl<T> StructuralEq for BytesPerSecond<T> where
    T: TimeInt, 
[src]

impl<T, Rhs> Sub<Rhs> for BytesPerSecond<T> where
    T: TimeInt,
    Rhs: Rate + FixedPoint,
    BytesPerSecond<T>: TryFrom<Rhs>, 
[src]

type Output = BytesPerSecond<T>

The resulting type after applying the - operator.

pub fn sub(self, rhs: Rhs) -> <BytesPerSecond<T> as Sub<Rhs>>::Output[src]

See Add/Sub

impl TryFrom<BitsPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BitsPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<BitsPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<BytesPerSecond<T>> for BitsPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: BytesPerSecond<T>
) -> Result<BitsPerSecond<T>, <BitsPerSecond<T> as TryFrom<BytesPerSecond<T>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for KibibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<KibibitsPerSecond<u32>, <KibibitsPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for MegabitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<MegabitsPerSecond<u32>, <MegabitsPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

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]

impl TryFrom<BytesPerSecond<u64>> for MegabytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<MegabytesPerSecond<u32>, <MegabytesPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for KilobitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<KilobitsPerSecond<u32>, <KilobitsPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for KilobytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<KilobytesPerSecond<u32>, <KilobytesPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for KibibytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<KibibytesPerSecond<u32>, <KibibytesPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for MebibitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    small: BytesPerSecond<u64>
) -> Result<MebibitsPerSecond<u32>, <MebibitsPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for BitsPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: BytesPerSecond<u64>
) -> Result<BitsPerSecond<u32>, <BitsPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl TryFrom<BytesPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    source: BytesPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<BytesPerSecond<u64>>>::Error>
[src]

impl<SourceInt, DestInt> TryFrom<Generic<SourceInt>> for BytesPerSecond<DestInt> where
    DestInt: TimeInt + TryFrom<SourceInt>,
    SourceInt: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    generic_rate: Generic<SourceInt>
) -> Result<BytesPerSecond<DestInt>, <BytesPerSecond<DestInt> as TryFrom<Generic<SourceInt>>>::Error>
[src]

impl<T> TryFrom<KibibitsPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KibibitsPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<KibibitsPerSecond<T>>>::Error>
[src]

impl TryFrom<KibibitsPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KibibitsPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<KibibitsPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<KibibytesPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KibibytesPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<KibibytesPerSecond<T>>>::Error>
[src]

impl TryFrom<KibibytesPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KibibytesPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<KibibytesPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<KilobitsPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KilobitsPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<KilobitsPerSecond<T>>>::Error>
[src]

impl TryFrom<KilobitsPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KilobitsPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<KilobitsPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<KilobytesPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KilobytesPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<KilobytesPerSecond<T>>>::Error>
[src]

impl TryFrom<KilobytesPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: KilobytesPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<KilobytesPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<MebibitsPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MebibitsPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<MebibitsPerSecond<T>>>::Error>
[src]

impl TryFrom<MebibitsPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MebibitsPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<MebibitsPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<MebibytesPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

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]

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]

impl<T> TryFrom<MegabitsPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MegabitsPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<MegabitsPerSecond<T>>>::Error>
[src]

impl TryFrom<MegabitsPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MegabitsPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<MegabitsPerSecond<u64>>>::Error>
[src]

impl<T> TryFrom<MegabytesPerSecond<T>> for BytesPerSecond<T> where
    T: TimeInt, 
[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MegabytesPerSecond<T>
) -> Result<BytesPerSecond<T>, <BytesPerSecond<T> as TryFrom<MegabytesPerSecond<T>>>::Error>
[src]

impl TryFrom<MegabytesPerSecond<u64>> for BytesPerSecond<u32>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

pub fn try_from(
    big: MegabytesPerSecond<u64>
) -> Result<BytesPerSecond<u32>, <BytesPerSecond<u32> as TryFrom<MegabytesPerSecond<u64>>>::Error>
[src]

Auto Trait Implementations

impl<T> Send for BytesPerSecond<T> where
    T: Send

impl<T> Sync for BytesPerSecond<T> where
    T: Sync

impl<T> Unpin for BytesPerSecond<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[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]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]