pub struct Bytes(/* private fields */);
Implementations§
source§impl Bytes
impl Bytes
sourcepub const fn from_u64(bytes: u64) -> Self
pub const fn from_u64(bytes: u64) -> Self
Builds a new Bytes
formatted value with the provided bytes count.
§Panics
Panics if the provided count equals u64::MAX
,
which is reserved for None
in C.
sourcepub fn from_usize(bytes: usize) -> Self
pub fn from_usize(bytes: usize) -> Self
Builds a new Bytes
formatted value with the provided bytes count.
§Panics
Panics if the provided count equals u64::MAX
,
which is reserved for None
in C.
source§impl Bytes
impl Bytes
pub const fn checked_add(self, rhs: Self) -> Option<Self>
pub const fn saturating_add(self, rhs: Self) -> Self
pub fn overflowing_add(self, rhs: Self) -> (Self, bool)
pub fn wrapping_add(self, rhs: Self) -> Self
pub const fn checked_sub(self, rhs: Self) -> Option<Self>
pub const fn saturating_sub(self, rhs: Self) -> Self
pub const fn overflowing_sub(self, rhs: Self) -> (Self, bool)
pub const fn wrapping_sub(self, rhs: Self) -> Self
pub fn absdiff(self, rhs: Self) -> Self
source§impl Bytes
impl Bytes
pub const fn checked_div(self, rhs: u64) -> Option<Self>
pub const fn saturating_div(self, rhs: u64) -> Self
pub const fn checked_mul(self, rhs: u64) -> Option<Self>
pub const fn saturating_mul(self, rhs: u64) -> Self
pub fn overflowing_mul(self, rhs: u64) -> (Self, bool)
pub fn wrapping_mul(self, rhs: u64) -> Self
pub const fn checked_rem(self, rhs: u64) -> Option<Self>
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl AddAssign<Bytes> for Signed<Bytes>
impl AddAssign<Bytes> for Signed<Bytes>
source§fn add_assign(&mut self, other: Bytes)
fn add_assign(&mut self, other: Bytes)
Performs the
+=
operation. Read moresource§impl AddAssign for Bytes
impl AddAssign for Bytes
source§fn add_assign(&mut self, rhs: Bytes)
fn add_assign(&mut self, rhs: Bytes)
Performs the
+=
operation. Read moresource§impl<'de> Deserialize<'de> for Bytes
impl<'de> Deserialize<'de> for Bytes
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Displayable for Bytes
impl Displayable for Bytes
source§impl DivAssign<u64> for Bytes
impl DivAssign<u64> for Bytes
source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/=
operation. Read moresource§impl FormattedValue for Bytes
impl FormattedValue for Bytes
source§impl From<Bytes> for GenericFormattedValue
impl From<Bytes> for GenericFormattedValue
source§impl MulAssign<u64> for Bytes
impl MulAssign<u64> for Bytes
source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*=
operation. Read moresource§impl MulDiv<u64> for Bytes
impl MulDiv<u64> for Bytes
source§fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_floor(self, num: u64, denom: u64) -> Option<Self>
Calculates
floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read moresource§fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
fn mul_div_round(self, num: u64, denom: u64) -> Option<Self>
Calculates
round(val * num / denom)
, i.e. the closest integer to the result of the
division. If both surrounding integers are the same distance (x.5
), the one with the bigger
absolute value is returned (round away from 0.0). Read moresource§impl OptionCheckedAdd for Bytes
impl OptionCheckedAdd for Bytes
source§impl OptionCheckedDiv<u64> for Bytes
impl OptionCheckedDiv<u64> for Bytes
source§impl OptionCheckedDiv for Bytes
impl OptionCheckedDiv for Bytes
source§impl OptionCheckedMul<Bytes> for u64
impl OptionCheckedMul<Bytes> for u64
source§impl OptionCheckedMul<u64> for Bytes
impl OptionCheckedMul<u64> for Bytes
source§impl OptionCheckedRem<u64> for Bytes
impl OptionCheckedRem<u64> for Bytes
source§impl OptionCheckedRem for Bytes
impl OptionCheckedRem for Bytes
source§impl OptionCheckedSub for Bytes
impl OptionCheckedSub for Bytes
source§impl OptionOverflowingAdd for Bytes
impl OptionOverflowingAdd for Bytes
source§impl OptionOverflowingMul<Bytes> for u64
impl OptionOverflowingMul<Bytes> for u64
source§impl OptionOverflowingMul<u64> for Bytes
impl OptionOverflowingMul<u64> for Bytes
source§impl OptionOverflowingSub for Bytes
impl OptionOverflowingSub for Bytes
source§impl OptionSaturatingAdd for Bytes
impl OptionSaturatingAdd for Bytes
source§impl OptionSaturatingMul<Bytes> for u64
impl OptionSaturatingMul<Bytes> for u64
source§impl OptionSaturatingMul<u64> for Bytes
impl OptionSaturatingMul<u64> for Bytes
source§impl OptionSaturatingSub for Bytes
impl OptionSaturatingSub for Bytes
source§impl OptionWrappingAdd for Bytes
impl OptionWrappingAdd for Bytes
source§impl OptionWrappingMul<Bytes> for u64
impl OptionWrappingMul<Bytes> for u64
source§impl OptionWrappingMul<u64> for Bytes
impl OptionWrappingMul<u64> for Bytes
source§impl OptionWrappingSub for Bytes
impl OptionWrappingSub for Bytes
source§impl Ord for Bytes
impl Ord for Bytes
source§impl PartialOrd<Bytes> for Signed<Bytes>
impl PartialOrd<Bytes> for Signed<Bytes>
source§impl PartialOrd<Signed<Bytes>> for Bytes
impl PartialOrd<Signed<Bytes>> for Bytes
source§impl PartialOrd for Bytes
impl PartialOrd for Bytes
source§impl RemAssign<u64> for Bytes
impl RemAssign<u64> for Bytes
source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the
%=
operation. Read moresource§impl SubAssign<Bytes> for Signed<Bytes>
impl SubAssign<Bytes> for Signed<Bytes>
source§fn sub_assign(&mut self, other: Bytes)
fn sub_assign(&mut self, other: Bytes)
Performs the
-=
operation. Read moresource§impl SubAssign for Bytes
impl SubAssign for Bytes
source§fn sub_assign(&mut self, rhs: Bytes)
fn sub_assign(&mut self, rhs: Bytes)
Performs the
-=
operation. Read moresource§impl TryFrom<u64> for Bytes
impl TryFrom<u64> for Bytes
§type Error = GlibNoneError
type Error = GlibNoneError
The type returned in the event of a conversion error.
source§impl TryFromGlib<i64> for Bytes
impl TryFromGlib<i64> for Bytes
type Error = GlibNoneError
unsafe fn try_from_glib(val: i64) -> Result<Self, GlibNoneError>
source§impl UnsignedIntoSigned for Bytes
impl UnsignedIntoSigned for Bytes
type Signed = Signed<Bytes>
source§fn into_positive(self) -> Self::Signed
fn into_positive(self) -> Self::Signed
Converts
self
into a Signed::Positive
.source§fn into_negative(self) -> Self::Signed
fn into_negative(self) -> Self::Signed
Converts
self
into a Signed::Negative
.source§fn into_signed(self, sign: i32) -> Self::Signed
fn into_signed(self, sign: i32) -> Self::Signed
Converts
self
into a Signed
matching the given sign
.impl Copy for Bytes
impl Eq for Bytes
impl FormattedValueIntrinsic for Bytes
impl OptionOperations for Bytes
impl SignedIntrinsic for Bytes
impl SpecificFormattedValue for Bytes
impl SpecificFormattedValueIntrinsic for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CompatibleFormattedValue<GenericFormattedValue> for Twhere
T: SpecificFormattedValue,
impl<T> CompatibleFormattedValue<GenericFormattedValue> for Twhere
T: SpecificFormattedValue,
type Original = T
source§fn try_into_checked(
self,
other: GenericFormattedValue,
) -> Result<T, FormattedValueError>
fn try_into_checked( self, other: GenericFormattedValue, ) -> Result<T, FormattedValueError>
source§fn try_into_checked_explicit(
self,
format: Format,
) -> Result<<T as CompatibleFormattedValue<GenericFormattedValue>>::Original, FormattedValueError>
fn try_into_checked_explicit( self, format: Format, ) -> Result<<T as CompatibleFormattedValue<GenericFormattedValue>>::Original, FormattedValueError>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAdd<InnerRhs>,
impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAdd<InnerRhs>,
§impl<T, Rhs> OptionAdd<Rhs> for Twhere
T: OptionOperations + Add<Rhs>,
impl<T, Rhs> OptionAdd<Rhs> for Twhere
T: OptionOperations + Add<Rhs>,
§impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for T
§fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the addition assignment. Read more
§impl<T, InnerRhs> OptionAddAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAddAssign<InnerRhs>,
impl<T, InnerRhs> OptionAddAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAddAssign<InnerRhs>,
§fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)
Performs the addition assignment. Read more
§impl<T, Rhs> OptionAddAssign<Rhs> for Twhere
T: OptionOperations + AddAssign<Rhs>,
impl<T, Rhs> OptionAddAssign<Rhs> for Twhere
T: OptionOperations + AddAssign<Rhs>,
§fn opt_add_assign(&mut self, rhs: Rhs)
fn opt_add_assign(&mut self, rhs: Rhs)
Performs the addition assignment. Read more
§impl<T, InnerRhs> OptionCheckedAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedAdd<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionCheckedAdd<InnerRhs>>::Output
type Output = <T as OptionCheckedAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_checked_add(
self,
rhs: &Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedAdd<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_add( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedAdd<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked addition. Read more
§impl<T, InnerRhs> OptionCheckedAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedAdd<InnerRhs>,
impl<T, InnerRhs> OptionCheckedAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedAdd<InnerRhs>,
§type Output = <T as OptionCheckedAdd<InnerRhs>>::Output
type Output = <T as OptionCheckedAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_checked_add(
self,
rhs: Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedAdd<Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_add( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedAdd<Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked addition. Read more
§impl<T, InnerRhs> OptionCheckedDiv<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedDiv<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionCheckedDiv<InnerRhs>>::Output
type Output = <T as OptionCheckedDiv<InnerRhs>>::Output
The resulting inner type after applying the division.
§fn opt_checked_div(
self,
rhs: &Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedDiv<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_div( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedDiv<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked division. Read more
§impl<T, InnerRhs> OptionCheckedDiv<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedDiv<InnerRhs>,
impl<T, InnerRhs> OptionCheckedDiv<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedDiv<InnerRhs>,
§type Output = <T as OptionCheckedDiv<InnerRhs>>::Output
type Output = <T as OptionCheckedDiv<InnerRhs>>::Output
The resulting inner type after applying the division.
§fn opt_checked_div(
self,
rhs: Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedDiv<Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_div( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedDiv<Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked division. Read more
§impl<T, InnerRhs> OptionCheckedMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedMul<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionCheckedMul<InnerRhs>>::Output
type Output = <T as OptionCheckedMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_checked_mul(
self,
rhs: &Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedMul<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_mul( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedMul<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked multiplication. Read more
§impl<T, InnerRhs> OptionCheckedMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedMul<InnerRhs>,
impl<T, InnerRhs> OptionCheckedMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedMul<InnerRhs>,
§type Output = <T as OptionCheckedMul<InnerRhs>>::Output
type Output = <T as OptionCheckedMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_checked_mul(
self,
rhs: Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedMul<Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_mul( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedMul<Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked multiplication. Read more
§impl<T, InnerRhs> OptionCheckedRem<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedRem<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionCheckedRem<InnerRhs>>::Output
type Output = <T as OptionCheckedRem<InnerRhs>>::Output
The resulting inner type after applying the remainder.
§fn opt_checked_rem(
self,
rhs: &Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedRem<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_rem( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedRem<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked remainder. Read more
§impl<T, InnerRhs> OptionCheckedRem<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedRem<InnerRhs>,
impl<T, InnerRhs> OptionCheckedRem<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedRem<InnerRhs>,
§type Output = <T as OptionCheckedRem<InnerRhs>>::Output
type Output = <T as OptionCheckedRem<InnerRhs>>::Output
The resulting inner type after applying the remainder.
§fn opt_checked_rem(
self,
rhs: Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedRem<Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_rem( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedRem<Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked remainder. Read more
§impl<T, InnerRhs> OptionCheckedSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedSub<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionCheckedSub<InnerRhs>>::Output
type Output = <T as OptionCheckedSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_checked_sub(
self,
rhs: &Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedSub<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_sub( self, rhs: &Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedSub<&Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked substraction. Read more
§impl<T, InnerRhs> OptionCheckedSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedSub<InnerRhs>,
impl<T, InnerRhs> OptionCheckedSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionCheckedSub<InnerRhs>,
§type Output = <T as OptionCheckedSub<InnerRhs>>::Output
type Output = <T as OptionCheckedSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_checked_sub(
self,
rhs: Option<InnerRhs>,
) -> Result<Option<<T as OptionCheckedSub<Option<InnerRhs>, InnerRhs>>::Output>, Error>
fn opt_checked_sub( self, rhs: Option<InnerRhs>, ) -> Result<Option<<T as OptionCheckedSub<Option<InnerRhs>, InnerRhs>>::Output>, Error>
Computes the checked substraction. Read more
§impl<T, InnerRhs> OptionDiv<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDiv<InnerRhs>,
impl<T, InnerRhs> OptionDiv<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDiv<InnerRhs>,
§impl<T, Rhs> OptionDiv<Rhs> for Twhere
T: OptionOperations + Div<Rhs>,
impl<T, Rhs> OptionDiv<Rhs> for Twhere
T: OptionOperations + Div<Rhs>,
§impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for T
§fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the division assignment. Read more
§impl<T, InnerRhs> OptionDivAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDivAssign<InnerRhs>,
impl<T, InnerRhs> OptionDivAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDivAssign<InnerRhs>,
§fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)
Performs the division assignment. Read more
§impl<T, Rhs> OptionDivAssign<Rhs> for Twhere
T: OptionOperations + DivAssign<Rhs>,
impl<T, Rhs> OptionDivAssign<Rhs> for Twhere
T: OptionOperations + DivAssign<Rhs>,
§fn opt_div_assign(&mut self, rhs: Rhs)
fn opt_div_assign(&mut self, rhs: Rhs)
Performs the division assignment. Read more
§impl<T, Rhs> OptionEq<&Rhs, Rhs> for Twhere
T: OptionOperations + PartialEq<Rhs>,
impl<T, Rhs> OptionEq<&Rhs, Rhs> for Twhere
T: OptionOperations + PartialEq<Rhs>,
§impl<T> OptionMinMax<Option<T>, T> for T
impl<T> OptionMinMax<Option<T>, T> for T
§impl<T> OptionMinMax<T> for T
impl<T> OptionMinMax<T> for T
§impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMul<InnerRhs>,
impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMul<InnerRhs>,
§impl<T, Rhs> OptionMul<Rhs> for Twhere
T: OptionOperations + Mul<Rhs>,
impl<T, Rhs> OptionMul<Rhs> for Twhere
T: OptionOperations + Mul<Rhs>,
§impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for T
§fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the multiplication assignment. Read more
§impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMulAssign<InnerRhs>,
impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMulAssign<InnerRhs>,
§fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)
Performs the multiplication assignment. Read more
§impl<T, Rhs> OptionMulAssign<Rhs> for Twhere
T: OptionOperations + MulAssign<Rhs>,
impl<T, Rhs> OptionMulAssign<Rhs> for Twhere
T: OptionOperations + MulAssign<Rhs>,
§fn opt_mul_assign(&mut self, rhs: Rhs)
fn opt_mul_assign(&mut self, rhs: Rhs)
Performs the multiplication assignment. Read more
§impl<T, InnerRhs> OptionOrd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOrd<&Option<InnerRhs>, InnerRhs> for T
§impl<T, Rhs> OptionOrd<&Rhs, Rhs> for Twhere
T: OptionOperations + PartialOrd<Rhs>,
impl<T, Rhs> OptionOrd<&Rhs, Rhs> for Twhere
T: OptionOperations + PartialOrd<Rhs>,
§impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T
§impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_overflowing_add(
self,
rhs: &Option<InnerRhs>,
) -> Option<(<T as OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs>>::Output, bool)>
fn opt_overflowing_add( self, rhs: &Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs>>::Output, bool)>
Returns a tuple of the addition
along with a boolean indicating whether an arithmetic overflow
would occur. If an overflow would have occurred then
self
is returned. Read more§impl<T, InnerRhs> OptionOverflowingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingAdd<InnerRhs>,
impl<T, InnerRhs> OptionOverflowingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingAdd<InnerRhs>,
§type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_overflowing_add(
self,
rhs: Option<InnerRhs>,
) -> Option<(<T as OptionOverflowingAdd<Option<InnerRhs>, InnerRhs>>::Output, bool)>
fn opt_overflowing_add( self, rhs: Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingAdd<Option<InnerRhs>, InnerRhs>>::Output, bool)>
Returns a tuple of the addition
along with a boolean indicating whether an arithmetic overflow
would occur. If an overflow would have occurred then
self
is returned. Read more§impl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_overflowing_mul(
self,
rhs: &Option<InnerRhs>,
) -> Option<(<T as OptionOverflowingMul<&Option<InnerRhs>, InnerRhs>>::Output, bool)>
fn opt_overflowing_mul( self, rhs: &Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingMul<&Option<InnerRhs>, InnerRhs>>::Output, bool)>
Returns a tuple of the multiplication
along with a boolean indicating whether an arithmetic overflow
would occur. If an overflow would have occurred then
self
is returned. Read more§impl<T, InnerRhs> OptionOverflowingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingMul<InnerRhs>,
impl<T, InnerRhs> OptionOverflowingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingMul<InnerRhs>,
§type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_overflowing_mul(
self,
rhs: Option<InnerRhs>,
) -> Option<(<T as OptionOverflowingMul<Option<InnerRhs>, InnerRhs>>::Output, bool)>
fn opt_overflowing_mul( self, rhs: Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingMul<Option<InnerRhs>, InnerRhs>>::Output, bool)>
Returns a tuple of the multiplication
along with a boolean indicating whether an arithmetic overflow
would occur. If an overflow would have occurred then
self
is returned. Read more§impl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_overflowing_sub(
self,
rhs: &Option<InnerRhs>,
) -> Option<(<T as OptionOverflowingSub<&Option<InnerRhs>, InnerRhs>>::Output, bool)>
fn opt_overflowing_sub( self, rhs: &Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingSub<&Option<InnerRhs>, InnerRhs>>::Output, bool)>
Returns a tuple of the substraction
along with a boolean indicating whether an arithmetic overflow
would occur. If an overflow would have occurred then
self
is returned. Read more§impl<T, InnerRhs> OptionOverflowingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingSub<InnerRhs>,
impl<T, InnerRhs> OptionOverflowingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingSub<InnerRhs>,
§type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_overflowing_sub(
self,
rhs: Option<InnerRhs>,
) -> Option<(<T as OptionOverflowingSub<Option<InnerRhs>, InnerRhs>>::Output, bool)>
fn opt_overflowing_sub( self, rhs: Option<InnerRhs>, ) -> Option<(<T as OptionOverflowingSub<Option<InnerRhs>, InnerRhs>>::Output, bool)>
Returns a tuple of the substraction
along with a boolean indicating whether an arithmetic overflow
would occur. If an overflow would have occurred then
self
is returned. Read more§impl<T, InnerRhs> OptionRem<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRem<InnerRhs>,
impl<T, InnerRhs> OptionRem<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRem<InnerRhs>,
§impl<T, Rhs> OptionRem<Rhs> for Twhere
T: OptionOperations + Rem<Rhs>,
impl<T, Rhs> OptionRem<Rhs> for Twhere
T: OptionOperations + Rem<Rhs>,
§impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for T
§fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the remainder assignment. Read more
§impl<T, InnerRhs> OptionRemAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRemAssign<InnerRhs>,
impl<T, InnerRhs> OptionRemAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRemAssign<InnerRhs>,
§fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)
Performs the remainder assignment. Read more
§impl<T, Rhs> OptionRemAssign<Rhs> for Twhere
T: OptionOperations + RemAssign<Rhs>,
impl<T, Rhs> OptionRemAssign<Rhs> for Twhere
T: OptionOperations + RemAssign<Rhs>,
§fn opt_rem_assign(&mut self, rhs: Rhs)
fn opt_rem_assign(&mut self, rhs: Rhs)
Performs the remainder assignment. Read more
§impl<T, InnerRhs> OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_saturating_add(
self,
rhs: &Option<InnerRhs>,
) -> Option<<T as OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs>>::Output>
fn opt_saturating_add( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs>>::Output>
Computes the addition
saturating at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionSaturatingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSaturatingAdd<InnerRhs>,
impl<T, InnerRhs> OptionSaturatingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSaturatingAdd<InnerRhs>,
§type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_saturating_add(
self,
rhs: Option<InnerRhs>,
) -> Option<<T as OptionSaturatingAdd<Option<InnerRhs>, InnerRhs>>::Output>
fn opt_saturating_add( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSaturatingAdd<Option<InnerRhs>, InnerRhs>>::Output>
Computes the addition
saturating at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionSaturatingMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSaturatingMul<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_saturating_mul(
self,
rhs: &Option<InnerRhs>,
) -> Option<<T as OptionSaturatingMul<&Option<InnerRhs>, InnerRhs>>::Output>
fn opt_saturating_mul( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSaturatingMul<&Option<InnerRhs>, InnerRhs>>::Output>
Computes the multiplication
saturating at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionSaturatingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSaturatingMul<InnerRhs>,
impl<T, InnerRhs> OptionSaturatingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSaturatingMul<InnerRhs>,
§type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_saturating_mul(
self,
rhs: Option<InnerRhs>,
) -> Option<<T as OptionSaturatingMul<Option<InnerRhs>, InnerRhs>>::Output>
fn opt_saturating_mul( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSaturatingMul<Option<InnerRhs>, InnerRhs>>::Output>
Computes the multiplication
saturating at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionSaturatingSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSaturatingSub<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_saturating_sub(
self,
rhs: &Option<InnerRhs>,
) -> Option<<T as OptionSaturatingSub<&Option<InnerRhs>, InnerRhs>>::Output>
fn opt_saturating_sub( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionSaturatingSub<&Option<InnerRhs>, InnerRhs>>::Output>
Computes the substraction
saturating at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionSaturatingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSaturatingSub<InnerRhs>,
impl<T, InnerRhs> OptionSaturatingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSaturatingSub<InnerRhs>,
§type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_saturating_sub(
self,
rhs: Option<InnerRhs>,
) -> Option<<T as OptionSaturatingSub<Option<InnerRhs>, InnerRhs>>::Output>
fn opt_saturating_sub( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionSaturatingSub<Option<InnerRhs>, InnerRhs>>::Output>
Computes the substraction
saturating at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSub<InnerRhs>,
impl<T, InnerRhs> OptionSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSub<InnerRhs>,
§impl<T, Rhs> OptionSub<Rhs> for Twhere
T: OptionOperations + Sub<Rhs>,
impl<T, Rhs> OptionSub<Rhs> for Twhere
T: OptionOperations + Sub<Rhs>,
§impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for T
§fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the substraction assignment. Read more
§impl<T, InnerRhs> OptionSubAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSubAssign<InnerRhs>,
impl<T, InnerRhs> OptionSubAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSubAssign<InnerRhs>,
§fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)
Performs the substraction assignment. Read more
§impl<T, Rhs> OptionSubAssign<Rhs> for Twhere
T: OptionOperations + SubAssign<Rhs>,
impl<T, Rhs> OptionSubAssign<Rhs> for Twhere
T: OptionOperations + SubAssign<Rhs>,
§fn opt_sub_assign(&mut self, rhs: Rhs)
fn opt_sub_assign(&mut self, rhs: Rhs)
Performs the substraction assignment. Read more
§impl<T, InnerRhs> OptionWrappingAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionWrappingAdd<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_wrapping_add(
self,
rhs: &Option<InnerRhs>,
) -> Option<<T as OptionWrappingAdd<&Option<InnerRhs>, InnerRhs>>::Output>
fn opt_wrapping_add( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionWrappingAdd<&Option<InnerRhs>, InnerRhs>>::Output>
Computes the addition
wrapping at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionWrappingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionWrappingAdd<InnerRhs>,
impl<T, InnerRhs> OptionWrappingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionWrappingAdd<InnerRhs>,
§type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
§fn opt_wrapping_add(
self,
rhs: Option<InnerRhs>,
) -> Option<<T as OptionWrappingAdd<Option<InnerRhs>, InnerRhs>>::Output>
fn opt_wrapping_add( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionWrappingAdd<Option<InnerRhs>, InnerRhs>>::Output>
Computes the addition
wrapping at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionWrappingMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionWrappingMul<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionWrappingMul<InnerRhs>>::Output
type Output = <T as OptionWrappingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_wrapping_mul(
self,
rhs: &Option<InnerRhs>,
) -> Option<<T as OptionWrappingMul<&Option<InnerRhs>, InnerRhs>>::Output>
fn opt_wrapping_mul( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionWrappingMul<&Option<InnerRhs>, InnerRhs>>::Output>
Computes the multiplication
wrapping at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionWrappingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionWrappingMul<InnerRhs>,
impl<T, InnerRhs> OptionWrappingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionWrappingMul<InnerRhs>,
§type Output = <T as OptionWrappingMul<InnerRhs>>::Output
type Output = <T as OptionWrappingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
§fn opt_wrapping_mul(
self,
rhs: Option<InnerRhs>,
) -> Option<<T as OptionWrappingMul<Option<InnerRhs>, InnerRhs>>::Output>
fn opt_wrapping_mul( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionWrappingMul<Option<InnerRhs>, InnerRhs>>::Output>
Computes the multiplication
wrapping at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionWrappingSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionWrappingSub<&Option<InnerRhs>, InnerRhs> for T
§type Output = <T as OptionWrappingSub<InnerRhs>>::Output
type Output = <T as OptionWrappingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_wrapping_sub(
self,
rhs: &Option<InnerRhs>,
) -> Option<<T as OptionWrappingSub<&Option<InnerRhs>, InnerRhs>>::Output>
fn opt_wrapping_sub( self, rhs: &Option<InnerRhs>, ) -> Option<<T as OptionWrappingSub<&Option<InnerRhs>, InnerRhs>>::Output>
Computes the substraction
wrapping at the numeric bounds instead of overflowing. Read more
§impl<T, InnerRhs> OptionWrappingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionWrappingSub<InnerRhs>,
impl<T, InnerRhs> OptionWrappingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionWrappingSub<InnerRhs>,
§type Output = <T as OptionWrappingSub<InnerRhs>>::Output
type Output = <T as OptionWrappingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
§fn opt_wrapping_sub(
self,
rhs: Option<InnerRhs>,
) -> Option<<T as OptionWrappingSub<Option<InnerRhs>, InnerRhs>>::Output>
fn opt_wrapping_sub( self, rhs: Option<InnerRhs>, ) -> Option<<T as OptionWrappingSub<Option<InnerRhs>, InnerRhs>>::Output>
Computes the substraction
wrapping at the numeric bounds instead of overflowing. Read more