pub struct Default(pub u64);
Tuple Fields
0: u64
Implementations
Trait Implementations
Performs the +=
operation. Read more
Deserialize this value from the given Serde deserializer. Read more
type DisplayImpl = String
Performs the /=
operation. Read more
Performs the /=
operation. Read more
type FormattedValueType = Option<Default>
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Calculates floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read more
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 more
Calculates ceil(val * num / denom)
, i.e. the the smallest integer greater than or equal to
the result of the division. Read more
type Output = Self
type Output = Self
The resulting inner type after applying the addition.
type Output = Self
type Output = Self
The resulting inner type after applying the multiplication.
type Output = Self
type Output = Self
The resulting inner type after applying the substraction.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the %=
operation. Read more
Performs the %=
operation. Read more
Performs the -=
operation. Read more
type Error = GlibNoneError
type Error = GlibNoneError
The type returned in the event of a conversion error.
type Error = GlibNoneError
Auto Trait Implementations
impl RefUnwindSafe for Default
impl UnwindSafe for Default
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionAddAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAddAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionAddAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAddAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
Performs the addition assignment. Read more
impl<T, InnerRhs> OptionAddAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAddAssign<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionAddAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAddAssign<InnerRhs, InnerRhs>,
Performs the addition assignment. Read more
Performs the addition assignment. Read more
impl<'_, T, InnerRhs> OptionCheckedAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionCheckedAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionCheckedAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_checked_add(
self,
rhs: &Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedAdd<&'_ Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 T where
T: OptionOperations + OptionCheckedAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionCheckedAdd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedAdd<InnerRhs, InnerRhs>,
type Output = <T as OptionCheckedAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_checked_add(
self,
rhs: Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedAdd<Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 where
T: OptionOperations + OptionCheckedDiv<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionCheckedDiv<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedDiv<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionCheckedDiv<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedDiv<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the division.
pub fn opt_checked_div(
self,
rhs: &Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedDiv<&'_ Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 T where
T: OptionOperations + OptionCheckedDiv<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionCheckedDiv<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedDiv<InnerRhs, InnerRhs>,
type Output = <T as OptionCheckedDiv<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedDiv<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the division.
pub fn opt_checked_div(
self,
rhs: Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedDiv<Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 where
T: OptionOperations + OptionCheckedMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionCheckedMul<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionCheckedMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_checked_mul(
self,
rhs: &Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedMul<&'_ Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 T where
T: OptionOperations + OptionCheckedMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionCheckedMul<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedMul<InnerRhs, InnerRhs>,
type Output = <T as OptionCheckedMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_checked_mul(
self,
rhs: Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedMul<Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 where
T: OptionOperations + OptionCheckedRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionCheckedRem<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionCheckedRem<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedRem<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the remainder.
pub fn opt_checked_rem(
self,
rhs: &Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedRem<&'_ Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 T where
T: OptionOperations + OptionCheckedRem<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionCheckedRem<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedRem<InnerRhs, InnerRhs>,
type Output = <T as OptionCheckedRem<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedRem<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the remainder.
pub fn opt_checked_rem(
self,
rhs: Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedRem<Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 where
T: OptionOperations + OptionCheckedSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionCheckedSub<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionCheckedSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_checked_sub(
self,
rhs: &Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedSub<&'_ Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 T where
T: OptionOperations + OptionCheckedSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionCheckedSub<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionCheckedSub<InnerRhs, InnerRhs>,
type Output = <T as OptionCheckedSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionCheckedSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_checked_sub(
self,
rhs: Option<InnerRhs>
) -> Result<Option<<T as OptionCheckedSub<Option<InnerRhs>, InnerRhs>>::Output>, Error>
pub 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 T where
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionDiv<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionDivAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDivAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionDivAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDivAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
Performs the division assignment. Read more
impl<T, InnerRhs> OptionDivAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDivAssign<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionDivAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDivAssign<InnerRhs, InnerRhs>,
Performs the division assignment. Read more
Performs the division assignment. Read more
impl<T, Rhs> OptionEq<Rhs, Rhs> for T where
T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,
impl<T, Rhs> OptionEq<Rhs, Rhs> for T where
T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,
impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionMulAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMulAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionMulAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMulAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
Performs the multiplication assignment. Read more
impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMulAssign<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMulAssign<InnerRhs, InnerRhs>,
Performs the multiplication assignment. Read more
Performs the multiplication assignment. Read more
impl<T, Rhs> OptionOrd<Rhs, Rhs> for T where
T: OptionOperations + for<'a> OptionOrd<&'a Rhs, Rhs>,
impl<T, Rhs> OptionOrd<Rhs, Rhs> for T where
T: OptionOperations + for<'a> OptionOrd<&'a Rhs, Rhs>,
impl<'_, T, InnerRhs> OptionOverflowingAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionOverflowingAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionOverflowingAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionOverflowingAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_overflowing_add(
self,
rhs: &Option<InnerRhs>
) -> Option<(<T as OptionOverflowingAdd<&'_ Option<InnerRhs>, InnerRhs>>::Output, bool)>
pub 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 T where
T: OptionOperations + OptionOverflowingAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOverflowingAdd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingAdd<InnerRhs, InnerRhs>,
type Output = <T as OptionOverflowingAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionOverflowingAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_overflowing_add(
self,
rhs: Option<InnerRhs>
) -> Option<(<T as OptionOverflowingAdd<Option<InnerRhs>, InnerRhs>>::Output, bool)>
pub 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 where
T: OptionOperations + OptionOverflowingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionOverflowingMul<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionOverflowingMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionOverflowingMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_overflowing_mul(
self,
rhs: &Option<InnerRhs>
) -> Option<(<T as OptionOverflowingMul<&'_ Option<InnerRhs>, InnerRhs>>::Output, bool)>
pub 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 T where
T: OptionOperations + OptionOverflowingMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOverflowingMul<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingMul<InnerRhs, InnerRhs>,
type Output = <T as OptionOverflowingMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionOverflowingMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_overflowing_mul(
self,
rhs: Option<InnerRhs>
) -> Option<(<T as OptionOverflowingMul<Option<InnerRhs>, InnerRhs>>::Output, bool)>
pub 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 where
T: OptionOperations + OptionOverflowingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionOverflowingSub<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionOverflowingSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionOverflowingSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_overflowing_sub(
self,
rhs: &Option<InnerRhs>
) -> Option<(<T as OptionOverflowingSub<&'_ Option<InnerRhs>, InnerRhs>>::Output, bool)>
pub 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 T where
T: OptionOperations + OptionOverflowingSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOverflowingSub<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionOverflowingSub<InnerRhs, InnerRhs>,
type Output = <T as OptionOverflowingSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionOverflowingSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_overflowing_sub(
self,
rhs: Option<InnerRhs>
) -> Option<(<T as OptionOverflowingSub<Option<InnerRhs>, InnerRhs>>::Output, bool)>
pub 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 T where
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionRem<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionRemAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRemAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionRemAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRemAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
Performs the remainder assignment. Read more
impl<T, InnerRhs> OptionRemAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRemAssign<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionRemAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRemAssign<InnerRhs, InnerRhs>,
Performs the remainder assignment. Read more
Performs the remainder assignment. Read more
impl<'_, T, InnerRhs> OptionSaturatingAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionSaturatingAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionSaturatingAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionSaturatingAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_saturating_add(
self,
rhs: &Option<InnerRhs>
) -> Option<<T as OptionSaturatingAdd<&'_ Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionSaturatingAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionSaturatingAdd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingAdd<InnerRhs, InnerRhs>,
type Output = <T as OptionSaturatingAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionSaturatingAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_saturating_add(
self,
rhs: Option<InnerRhs>
) -> Option<<T as OptionSaturatingAdd<Option<InnerRhs>, InnerRhs>>::Output>
pub 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 where
T: OptionOperations + OptionSaturatingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionSaturatingMul<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionSaturatingMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionSaturatingMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_saturating_mul(
self,
rhs: &Option<InnerRhs>
) -> Option<<T as OptionSaturatingMul<&'_ Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionSaturatingMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionSaturatingMul<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingMul<InnerRhs, InnerRhs>,
type Output = <T as OptionSaturatingMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionSaturatingMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_saturating_mul(
self,
rhs: Option<InnerRhs>
) -> Option<<T as OptionSaturatingMul<Option<InnerRhs>, InnerRhs>>::Output>
pub 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 where
T: OptionOperations + OptionSaturatingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionSaturatingSub<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionSaturatingSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionSaturatingSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_saturating_sub(
self,
rhs: &Option<InnerRhs>
) -> Option<<T as OptionSaturatingSub<&'_ Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionSaturatingSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionSaturatingSub<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSaturatingSub<InnerRhs, InnerRhs>,
type Output = <T as OptionSaturatingSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionSaturatingSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_saturating_sub(
self,
rhs: Option<InnerRhs>
) -> Option<<T as OptionSaturatingSub<Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionSub<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionSubAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSubAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionSubAssign<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSubAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
Performs the substraction assignment. Read more
impl<T, InnerRhs> OptionSubAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSubAssign<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionSubAssign<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSubAssign<InnerRhs, InnerRhs>,
Performs the substraction assignment. Read more
Performs the substraction assignment. Read more
impl<'_, T, InnerRhs> OptionWrappingAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionWrappingAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionWrappingAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionWrappingAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_wrapping_add(
self,
rhs: &Option<InnerRhs>
) -> Option<<T as OptionWrappingAdd<&'_ Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionWrappingAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionWrappingAdd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingAdd<InnerRhs, InnerRhs>,
type Output = <T as OptionWrappingAdd<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionWrappingAdd<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the addition.
pub fn opt_wrapping_add(
self,
rhs: Option<InnerRhs>
) -> Option<<T as OptionWrappingAdd<Option<InnerRhs>, InnerRhs>>::Output>
pub 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 where
T: OptionOperations + OptionWrappingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionWrappingMul<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionWrappingMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionWrappingMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_wrapping_mul(
self,
rhs: &Option<InnerRhs>
) -> Option<<T as OptionWrappingMul<&'_ Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionWrappingMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionWrappingMul<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingMul<InnerRhs, InnerRhs>,
type Output = <T as OptionWrappingMul<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionWrappingMul<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the multiplication.
pub fn opt_wrapping_mul(
self,
rhs: Option<InnerRhs>
) -> Option<<T as OptionWrappingMul<Option<InnerRhs>, InnerRhs>>::Output>
pub 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 where
T: OptionOperations + OptionWrappingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionWrappingSub<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
type Output = <T as OptionWrappingSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionWrappingSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_wrapping_sub(
self,
rhs: &Option<InnerRhs>
) -> Option<<T as OptionWrappingSub<&'_ Option<InnerRhs>, InnerRhs>>::Output>
pub 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 T where
T: OptionOperations + OptionWrappingSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionWrappingSub<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionWrappingSub<InnerRhs, InnerRhs>,
type Output = <T as OptionWrappingSub<InnerRhs, InnerRhs>>::Output
type Output = <T as OptionWrappingSub<InnerRhs, InnerRhs>>::Output
The resulting inner type after applying the substraction.
pub fn opt_wrapping_sub(
self,
rhs: Option<InnerRhs>
) -> Option<<T as OptionWrappingSub<Option<InnerRhs>, InnerRhs>>::Output>
pub 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