pub struct Other(/* private fields */);
Implementations§
source§impl Other
impl Other
sourcepub const fn from_u64(quantity: u64) -> Self
pub const fn from_u64(quantity: u64) -> Self
Builds a new Other
value with the provided quantity.
§Panics
Panics if the provided quantity equals u64::MAX
,
which is reserved for None
in C.
sourcepub fn from_usize(quantity: usize) -> Self
pub fn from_usize(quantity: usize) -> Self
Builds a new Other
value with the provided quantity.
§Panics
Panics if the provided quantity equals u64::MAX
,
which is reserved for None
in C.
source§impl Other
impl Other
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 Other
impl Other
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<Other> for Signed<Other>
impl AddAssign<Other> for Signed<Other>
source§fn add_assign(&mut self, other: Other)
fn add_assign(&mut self, other: Other)
Performs the
+=
operation. Read moresource§impl AddAssign for Other
impl AddAssign for Other
source§fn add_assign(&mut self, rhs: Other)
fn add_assign(&mut self, rhs: Other)
Performs the
+=
operation. Read moresource§impl<'de> Deserialize<'de> for Other
impl<'de> Deserialize<'de> for Other
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 Other
impl Displayable for Other
source§impl DivAssign<u64> for Other
impl DivAssign<u64> for Other
source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/=
operation. Read moresource§impl MulAssign<u64> for Other
impl MulAssign<u64> for Other
source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*=
operation. Read moresource§impl MulDiv<u64> for Other
impl MulDiv<u64> for Other
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 Other
impl OptionCheckedAdd for Other
source§impl OptionCheckedDiv<u64> for Other
impl OptionCheckedDiv<u64> for Other
source§impl OptionCheckedDiv for Other
impl OptionCheckedDiv for Other
source§impl OptionCheckedMul<Other> for u64
impl OptionCheckedMul<Other> for u64
source§impl OptionCheckedMul<u64> for Other
impl OptionCheckedMul<u64> for Other
source§impl OptionCheckedRem<u64> for Other
impl OptionCheckedRem<u64> for Other
source§impl OptionCheckedRem for Other
impl OptionCheckedRem for Other
source§impl OptionCheckedSub for Other
impl OptionCheckedSub for Other
source§impl OptionOverflowingAdd for Other
impl OptionOverflowingAdd for Other
source§impl OptionOverflowingMul<Other> for u64
impl OptionOverflowingMul<Other> for u64
source§impl OptionOverflowingMul<u64> for Other
impl OptionOverflowingMul<u64> for Other
source§impl OptionOverflowingSub for Other
impl OptionOverflowingSub for Other
source§impl OptionSaturatingAdd for Other
impl OptionSaturatingAdd for Other
source§impl OptionSaturatingMul<Other> for u64
impl OptionSaturatingMul<Other> for u64
source§impl OptionSaturatingMul<u64> for Other
impl OptionSaturatingMul<u64> for Other
source§impl OptionSaturatingSub for Other
impl OptionSaturatingSub for Other
source§impl OptionWrappingAdd for Other
impl OptionWrappingAdd for Other
source§impl OptionWrappingMul<Other> for u64
impl OptionWrappingMul<Other> for u64
source§impl OptionWrappingMul<u64> for Other
impl OptionWrappingMul<u64> for Other
source§impl OptionWrappingSub for Other
impl OptionWrappingSub for Other
source§impl Ord for Other
impl Ord for Other
source§impl PartialOrd<Other> for Signed<Other>
impl PartialOrd<Other> for Signed<Other>
source§impl PartialOrd<Signed<Other>> for Other
impl PartialOrd<Signed<Other>> for Other
source§impl PartialOrd for Other
impl PartialOrd for Other
source§impl RemAssign<u64> for Other
impl RemAssign<u64> for Other
source§fn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the
%=
operation. Read moresource§impl SubAssign<Other> for Signed<Other>
impl SubAssign<Other> for Signed<Other>
source§fn sub_assign(&mut self, other: Other)
fn sub_assign(&mut self, other: Other)
Performs the
-=
operation. Read moresource§impl SubAssign for Other
impl SubAssign for Other
source§fn sub_assign(&mut self, rhs: Other)
fn sub_assign(&mut self, rhs: Other)
Performs the
-=
operation. Read moresource§impl TryFrom<u64> for Other
impl TryFrom<u64> for Other
§type Error = GlibNoneError
type Error = GlibNoneError
The type returned in the event of a conversion error.
source§impl TryFromGlib<i64> for Other
impl TryFromGlib<i64> for Other
type Error = GlibNoneError
unsafe fn try_from_glib(val: i64) -> Result<Self, GlibNoneError>
source§impl UnsignedIntoSigned for Other
impl UnsignedIntoSigned for Other
type Signed = Signed<Other>
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 Other
impl Eq for Other
impl OptionOperations for Other
impl SignedIntrinsic for Other
impl StructuralPartialEq for Other
Auto Trait Implementations§
impl Freeze for Other
impl RefUnwindSafe for Other
impl Send for Other
impl Sync for Other
impl Unpin for Other
impl UnwindSafe for Other
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> 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