pub struct Buffers(u64);
Tuple Fields§
§0: u64
Implementations§
source§impl Buffers
impl Buffers
pub const OFFSET_NONE: u64 = 18_446_744_073_709_551_615u64
pub const MAX: Self = _
source§impl Buffers
impl Buffers
sourcepub const fn from_u64(buffers: u64) -> Self
pub const fn from_u64(buffers: u64) -> Self
Builds a new Buffers
formatted value with the provided buffers count.
§Panics
Panics if the provided count equals u64::MAX
,
which is reserved for None
in C.
sourcepub fn from_usize(buffers: usize) -> Self
pub fn from_usize(buffers: usize) -> Self
Builds a new Buffers
formatted value with the provided buffers count.
§Panics
Panics if the provided count equals u64::MAX
,
which is reserved for None
in C.
source§impl Buffers
impl Buffers
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 Buffers
impl Buffers
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<Buffers> for Signed<Buffers>
impl AddAssign<Buffers> for Signed<Buffers>
source§fn add_assign(&mut self, other: Buffers)
fn add_assign(&mut self, other: Buffers)
Performs the
+=
operation. Read moresource§impl AddAssign for Buffers
impl AddAssign for Buffers
source§fn add_assign(&mut self, rhs: Buffers)
fn add_assign(&mut self, rhs: Buffers)
Performs the
+=
operation. Read moresource§impl DivAssign<u64> for Buffers
impl DivAssign<u64> for Buffers
source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/=
operation. Read moresource§impl FormattedValue for Buffers
impl FormattedValue for Buffers
source§impl From<Buffers> for GenericFormattedValue
impl From<Buffers> for GenericFormattedValue
source§impl MulAssign<u64> for Buffers
impl MulAssign<u64> for Buffers
source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*=
operation. Read moresource§impl MulDiv<u64> for Buffers
impl MulDiv<u64> for Buffers
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 Buffers
impl OptionCheckedAdd for Buffers
source§impl OptionCheckedDiv<u64> for Buffers
impl OptionCheckedDiv<u64> for Buffers
source§impl OptionCheckedDiv for Buffers
impl OptionCheckedDiv for Buffers
source§impl OptionCheckedMul<Buffers> for u64
impl OptionCheckedMul<Buffers> for u64
source§impl OptionCheckedMul<u64> for Buffers
impl OptionCheckedMul<u64> for Buffers
source§impl OptionCheckedRem<u64> for Buffers
impl OptionCheckedRem<u64> for Buffers
source§impl OptionCheckedRem for Buffers
impl OptionCheckedRem for Buffers
source§impl OptionCheckedSub for Buffers
impl OptionCheckedSub for Buffers
source§impl OptionOverflowingAdd for Buffers
impl OptionOverflowingAdd for Buffers
source§impl OptionOverflowingMul<Buffers> for u64
impl OptionOverflowingMul<Buffers> for u64
source§impl OptionOverflowingMul<u64> for Buffers
impl OptionOverflowingMul<u64> for Buffers
source§impl OptionOverflowingSub for Buffers
impl OptionOverflowingSub for Buffers
source§impl OptionSaturatingAdd for Buffers
impl OptionSaturatingAdd for Buffers
source§impl OptionSaturatingMul<Buffers> for u64
impl OptionSaturatingMul<Buffers> for u64
source§impl OptionSaturatingMul<u64> for Buffers
impl OptionSaturatingMul<u64> for Buffers
source§impl OptionSaturatingSub for Buffers
impl OptionSaturatingSub for Buffers
source§impl OptionWrappingAdd for Buffers
impl OptionWrappingAdd for Buffers
source§impl OptionWrappingMul<Buffers> for u64
impl OptionWrappingMul<Buffers> for u64
source§impl OptionWrappingMul<u64> for Buffers
impl OptionWrappingMul<u64> for Buffers
source§impl OptionWrappingSub for Buffers
impl OptionWrappingSub for Buffers
source§impl Ord for Buffers
impl Ord for Buffers
source§impl PartialOrd<Buffers> for Signed<Buffers>
impl PartialOrd<Buffers> for Signed<Buffers>
source§impl PartialOrd<Signed<Buffers>> for Buffers
impl PartialOrd<Signed<Buffers>> for Buffers
source§impl PartialOrd for Buffers
impl PartialOrd for Buffers
source§impl RemAssign<u64> for Buffers
impl RemAssign<u64> for Buffers
source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the
%=
operation. Read moresource§impl SubAssign<Buffers> for Signed<Buffers>
impl SubAssign<Buffers> for Signed<Buffers>
source§fn sub_assign(&mut self, other: Buffers)
fn sub_assign(&mut self, other: Buffers)
Performs the
-=
operation. Read moresource§impl SubAssign for Buffers
impl SubAssign for Buffers
source§fn sub_assign(&mut self, rhs: Buffers)
fn sub_assign(&mut self, rhs: Buffers)
Performs the
-=
operation. Read moresource§impl TryFrom<u64> for Buffers
impl TryFrom<u64> for Buffers
source§type Error = GlibNoneError
type Error = GlibNoneError
The type returned in the event of a conversion error.
source§impl TryFromGlib<i64> for Buffers
impl TryFromGlib<i64> for Buffers
type Error = GlibNoneError
unsafe fn try_from_glib(val: i64) -> Result<Self, GlibNoneError>
source§impl UnsignedIntoSigned for Buffers
impl UnsignedIntoSigned for Buffers
type Signed = Signed<Buffers>
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 Buffers
impl Eq for Buffers
impl FormattedValueIntrinsic for Buffers
impl OptionOperations for Buffers
impl SignedIntrinsic for Buffers
impl SpecificFormattedValue for Buffers
impl SpecificFormattedValueIntrinsic for Buffers
impl StructuralPartialEq for Buffers
Auto Trait Implementations§
impl Freeze for Buffers
impl RefUnwindSafe for Buffers
impl Send for Buffers
impl Sync for Buffers
impl Unpin for Buffers
impl UnwindSafe for Buffers
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 moresource§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>,
source§impl<T, Rhs> OptionAdd<Rhs> for Twhere
T: OptionOperations + Add<Rhs>,
impl<T, Rhs> OptionAdd<Rhs> for Twhere
T: OptionOperations + Add<Rhs>,
source§impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for T
source§fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the addition assignment. Read more
source§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>,
source§fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)
Performs the addition assignment. Read more
source§impl<T, Rhs> OptionAddAssign<Rhs> for Twhere
T: OptionOperations + AddAssign<Rhs>,
impl<T, Rhs> OptionAddAssign<Rhs> for Twhere
T: OptionOperations + AddAssign<Rhs>,
source§fn opt_add_assign(&mut self, rhs: Rhs)
fn opt_add_assign(&mut self, rhs: Rhs)
Performs the addition assignment. Read more
source§impl<T, InnerRhs> OptionCheckedAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedAdd<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionCheckedAdd<InnerRhs>>::Output
type Output = <T as OptionCheckedAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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>,
source§impl<T, InnerRhs> OptionCheckedDiv<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedDiv<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionCheckedDiv<InnerRhs>>::Output
type Output = <T as OptionCheckedDiv<InnerRhs>>::Output
The resulting inner type after applying the division.
source§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>,
source§impl<T, InnerRhs> OptionCheckedMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedMul<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionCheckedMul<InnerRhs>>::Output
type Output = <T as OptionCheckedMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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>,
source§type Output = <T as OptionCheckedMul<InnerRhs>>::Output
type Output = <T as OptionCheckedMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§impl<T, InnerRhs> OptionCheckedRem<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedRem<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionCheckedRem<InnerRhs>>::Output
type Output = <T as OptionCheckedRem<InnerRhs>>::Output
The resulting inner type after applying the remainder.
source§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>,
source§type Output = <T as OptionCheckedRem<InnerRhs>>::Output
type Output = <T as OptionCheckedRem<InnerRhs>>::Output
The resulting inner type after applying the remainder.
source§impl<T, InnerRhs> OptionCheckedSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionCheckedSub<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionCheckedSub<InnerRhs>>::Output
type Output = <T as OptionCheckedSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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>,
source§type Output = <T as OptionCheckedSub<InnerRhs>>::Output
type Output = <T as OptionCheckedSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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>,
source§impl<T, Rhs> OptionDiv<Rhs> for Twhere
T: OptionOperations + Div<Rhs>,
impl<T, Rhs> OptionDiv<Rhs> for Twhere
T: OptionOperations + Div<Rhs>,
source§impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for T
source§fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the division assignment. Read more
source§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>,
source§fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)
Performs the division assignment. Read more
source§impl<T, Rhs> OptionDivAssign<Rhs> for Twhere
T: OptionOperations + DivAssign<Rhs>,
impl<T, Rhs> OptionDivAssign<Rhs> for Twhere
T: OptionOperations + DivAssign<Rhs>,
source§fn opt_div_assign(&mut self, rhs: Rhs)
fn opt_div_assign(&mut self, rhs: Rhs)
Performs the division assignment. Read more
source§impl<T> OptionMinMax<Option<T>, T> for T
impl<T> OptionMinMax<Option<T>, T> for T
source§impl<T> OptionMinMax<T> for T
impl<T> OptionMinMax<T> for T
source§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>,
source§impl<T, Rhs> OptionMul<Rhs> for Twhere
T: OptionOperations + Mul<Rhs>,
impl<T, Rhs> OptionMul<Rhs> for Twhere
T: OptionOperations + Mul<Rhs>,
source§impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for T
source§fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the multiplication assignment. Read more
source§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>,
source§fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)
Performs the multiplication assignment. Read more
source§impl<T, Rhs> OptionMulAssign<Rhs> for Twhere
T: OptionOperations + MulAssign<Rhs>,
impl<T, Rhs> OptionMulAssign<Rhs> for Twhere
T: OptionOperations + MulAssign<Rhs>,
source§fn opt_mul_assign(&mut self, rhs: Rhs)
fn opt_mul_assign(&mut self, rhs: Rhs)
Performs the multiplication assignment. Read more
source§impl<T, InnerRhs> OptionOrd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOrd<&Option<InnerRhs>, InnerRhs> for T
source§impl<T, Rhs> OptionOrd<&Rhs, Rhs> for Twhere
T: OptionOperations + PartialOrd<Rhs>,
impl<T, Rhs> OptionOrd<&Rhs, Rhs> for Twhere
T: OptionOperations + PartialOrd<Rhs>,
source§impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T
source§impl<T, Rhs> OptionOrd<Rhs> for T
impl<T, Rhs> OptionOrd<Rhs> for T
source§impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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 moresource§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>,
source§type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
type Output = <T as OptionOverflowingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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 moresource§impl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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 moresource§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>,
source§type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
type Output = <T as OptionOverflowingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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 moresource§impl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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 moresource§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>,
source§type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
type Output = <T as OptionOverflowingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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 moresource§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>,
source§impl<T, Rhs> OptionRem<Rhs> for Twhere
T: OptionOperations + Rem<Rhs>,
impl<T, Rhs> OptionRem<Rhs> for Twhere
T: OptionOperations + Rem<Rhs>,
source§impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for T
source§fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the remainder assignment. Read more
source§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>,
source§fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)
Performs the remainder assignment. Read more
source§impl<T, Rhs> OptionRemAssign<Rhs> for Twhere
T: OptionOperations + RemAssign<Rhs>,
impl<T, Rhs> OptionRemAssign<Rhs> for Twhere
T: OptionOperations + RemAssign<Rhs>,
source§fn opt_rem_assign(&mut self, rhs: Rhs)
fn opt_rem_assign(&mut self, rhs: Rhs)
Performs the remainder assignment. Read more
source§impl<T, InnerRhs> OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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
source§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>,
source§type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
type Output = <T as OptionSaturatingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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
source§impl<T, InnerRhs> OptionSaturatingMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSaturatingMul<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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
source§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>,
source§type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
type Output = <T as OptionSaturatingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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
source§impl<T, InnerRhs> OptionSaturatingSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSaturatingSub<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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
source§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>,
source§type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
type Output = <T as OptionSaturatingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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
source§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>,
source§impl<T, Rhs> OptionSub<Rhs> for Twhere
T: OptionOperations + Sub<Rhs>,
impl<T, Rhs> OptionSub<Rhs> for Twhere
T: OptionOperations + Sub<Rhs>,
source§impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for T
source§fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)
fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the substraction assignment. Read more
source§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>,
source§fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)
fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)
Performs the substraction assignment. Read more
source§impl<T, Rhs> OptionSubAssign<Rhs> for Twhere
T: OptionOperations + SubAssign<Rhs>,
impl<T, Rhs> OptionSubAssign<Rhs> for Twhere
T: OptionOperations + SubAssign<Rhs>,
source§fn opt_sub_assign(&mut self, rhs: Rhs)
fn opt_sub_assign(&mut self, rhs: Rhs)
Performs the substraction assignment. Read more
source§impl<T, InnerRhs> OptionWrappingAdd<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionWrappingAdd<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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
source§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>,
source§type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
type Output = <T as OptionWrappingAdd<InnerRhs>>::Output
The resulting inner type after applying the addition.
source§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
source§impl<T, InnerRhs> OptionWrappingMul<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionWrappingMul<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionWrappingMul<InnerRhs>>::Output
type Output = <T as OptionWrappingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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
source§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>,
source§type Output = <T as OptionWrappingMul<InnerRhs>>::Output
type Output = <T as OptionWrappingMul<InnerRhs>>::Output
The resulting inner type after applying the multiplication.
source§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
source§impl<T, InnerRhs> OptionWrappingSub<&Option<InnerRhs>, InnerRhs> for T
impl<T, InnerRhs> OptionWrappingSub<&Option<InnerRhs>, InnerRhs> for T
source§type Output = <T as OptionWrappingSub<InnerRhs>>::Output
type Output = <T as OptionWrappingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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
source§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>,
source§type Output = <T as OptionWrappingSub<InnerRhs>>::Output
type Output = <T as OptionWrappingSub<InnerRhs>>::Output
The resulting inner type after applying the substraction.
source§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