pub struct Percent(pub u32);
Tuple Fields
0: u32
Implementations
sourceimpl Percent
impl Percent
pub const ZERO: Self
pub const NONE: Option<Self>
pub const fn is_zero(self) -> bool
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_div(self, rhs: u32) -> Option<Self>
pub const fn checked_mul(self, rhs: u32) -> Option<Self>
pub const fn saturating_mul(self, rhs: u32) -> Self
pub fn overflowing_mul(self, rhs: u32) -> (Self, bool)
pub fn wrapping_mul(self, rhs: u32) -> Self
pub const fn checked_rem(self, rhs: u32) -> Option<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
Methods from Deref<Target = u32>
pub const MIN: u32
pub const MAX: u32
pub const BITS: u32
Trait Implementations
sourceimpl<RHS: Borrow<Percent>> AddAssign<RHS> for Percent
impl<RHS: Borrow<Percent>> AddAssign<RHS> for Percent
sourcefn add_assign(&mut self, rhs: RHS)
fn add_assign(&mut self, rhs: RHS)
Performs the +=
operation. Read more
sourceimpl<'de> Deserialize<'de> for Percent
impl<'de> Deserialize<'de> for Percent
sourcefn 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
sourceimpl Displayable for Percent
impl Displayable for Percent
type DisplayImpl = String
fn display(self) -> String
sourceimpl<RHS: Borrow<Percent>> DivAssign<RHS> for Percent
impl<RHS: Borrow<Percent>> DivAssign<RHS> for Percent
sourcefn div_assign(&mut self, rhs: RHS)
fn div_assign(&mut self, rhs: RHS)
Performs the /=
operation. Read more
sourceimpl DivAssign<u32> for Percent
impl DivAssign<u32> for Percent
sourcefn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
Performs the /=
operation. Read more
sourceimpl FormattedValueIntrinsic for Percent
impl FormattedValueIntrinsic for Percent
type FormattedValueType = Option<Percent>
sourceimpl From<Percent> for GenericFormattedValue
impl From<Percent> for GenericFormattedValue
sourceimpl<RHS: Borrow<Percent>> MulAssign<RHS> for Percent
impl<RHS: Borrow<Percent>> MulAssign<RHS> for Percent
sourcefn mul_assign(&mut self, rhs: RHS)
fn mul_assign(&mut self, rhs: RHS)
Performs the *=
operation. Read more
sourceimpl MulAssign<u32> for Percent
impl MulAssign<u32> for Percent
sourcefn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the *=
operation. Read more
sourceimpl<ND: Borrow<u32>> MulDiv<ND> for Percent
impl<ND: Borrow<u32>> MulDiv<ND> for Percent
sourcefn mul_div_floor(self, num: ND, denom: ND) -> Option<Self::Output>
fn mul_div_floor(self, num: ND, denom: ND) -> Option<Self::Output>
Calculates floor(val * num / denom)
, i.e. the largest integer less than or equal to the
result of the division. Read more
sourcefn mul_div_round(self, num: ND, denom: ND) -> Option<Self::Output>
fn mul_div_round(self, num: ND, denom: ND) -> Option<Self::Output>
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
sourcefn mul_div_ceil(self, num: ND, denom: ND) -> Option<Self::Output>
fn mul_div_ceil(self, num: ND, denom: ND) -> Option<Self::Output>
Calculates ceil(val * num / denom)
, i.e. the the smallest integer greater than or equal to
the result of the division. Read more
sourceimpl OptionCheckedAdd<Percent, Percent> for Percent
impl OptionCheckedAdd<Percent, Percent> for Percent
sourceimpl OptionCheckedDiv<u32, u32> for Percent
impl OptionCheckedDiv<u32, u32> for Percent
sourceimpl OptionCheckedMul<u32, u32> for Percent
impl OptionCheckedMul<u32, u32> for Percent
sourceimpl OptionCheckedRem<u32, u32> for Percent
impl OptionCheckedRem<u32, u32> for Percent
sourceimpl OptionCheckedSub<Percent, Percent> for Percent
impl OptionCheckedSub<Percent, Percent> for Percent
sourceimpl OptionOverflowingAdd<Percent, Percent> for Percent
impl OptionOverflowingAdd<Percent, Percent> for Percent
type Output = Self
type Output = Self
The resulting inner type after applying the addition.
sourceimpl OptionOverflowingMul<u32, u32> for Percent
impl OptionOverflowingMul<u32, u32> for Percent
type Output = Self
type Output = Self
The resulting inner type after applying the multiplication.
sourceimpl OptionOverflowingSub<Percent, Percent> for Percent
impl OptionOverflowingSub<Percent, Percent> for Percent
type Output = Self
type Output = Self
The resulting inner type after applying the substraction.
sourceimpl OptionSaturatingAdd<Percent, Percent> for Percent
impl OptionSaturatingAdd<Percent, Percent> for Percent
sourceimpl OptionSaturatingMul<u32, u32> for Percent
impl OptionSaturatingMul<u32, u32> for Percent
sourceimpl OptionSaturatingSub<Percent, Percent> for Percent
impl OptionSaturatingSub<Percent, Percent> for Percent
sourceimpl OptionWrappingAdd<Percent, Percent> for Percent
impl OptionWrappingAdd<Percent, Percent> for Percent
sourceimpl OptionWrappingMul<u32, u32> for Percent
impl OptionWrappingMul<u32, u32> for Percent
sourceimpl OptionWrappingSub<Percent, Percent> for Percent
impl OptionWrappingSub<Percent, Percent> for Percent
sourceimpl Ord for Percent
impl Ord for Percent
sourceimpl PartialOrd<Percent> for Percent
impl PartialOrd<Percent> for Percent
sourcefn partial_cmp(&self, other: &Percent) -> Option<Ordering>
fn partial_cmp(&self, other: &Percent) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<RHS: Borrow<Percent>> RemAssign<RHS> for Percent
impl<RHS: Borrow<Percent>> RemAssign<RHS> for Percent
sourcefn rem_assign(&mut self, rhs: RHS)
fn rem_assign(&mut self, rhs: RHS)
Performs the %=
operation. Read more
sourceimpl RemAssign<u32> for Percent
impl RemAssign<u32> for Percent
sourcefn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
Performs the %=
operation. Read more
sourceimpl<RHS: Borrow<Percent>> SubAssign<RHS> for Percent
impl<RHS: Borrow<Percent>> SubAssign<RHS> for Percent
sourcefn sub_assign(&mut self, rhs: RHS)
fn sub_assign(&mut self, rhs: RHS)
Performs the -=
operation. Read more
sourceimpl TryFrom<u64> for Percent
impl TryFrom<u64> for Percent
type Error = GlibNoneError
type Error = GlibNoneError
The type returned in the event of a conversion error.
sourceimpl TryFromGlib<i64> for Percent
impl TryFromGlib<i64> for Percent
type Error = GlibNoneError
unsafe fn try_from_glib(value: i64) -> Result<Self, Self::Error>
impl Copy for Percent
impl Eq for Percent
impl OptionOperations for Percent
impl SpecificFormattedValueIntrinsic for Percent
impl StructuralEq for Percent
impl StructuralPartialEq for Percent
Auto Trait Implementations
impl RefUnwindSafe for Percent
impl Send for Percent
impl Sync for Percent
impl Unpin for Percent
impl UnwindSafe for Percent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'_, T, InnerRhs> OptionAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionAdd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
sourceimpl<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>,
sourceimpl<T, Rhs> OptionAdd<Rhs, Rhs> for T where
T: OptionOperations + Add<Rhs>,
impl<T, Rhs> OptionAdd<Rhs, Rhs> for T where
T: OptionOperations + Add<Rhs>,
sourceimpl<'_, 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,
sourcepub fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)
pub fn opt_add_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the addition assignment. Read more
sourceimpl<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>,
sourcepub fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)
pub fn opt_add_assign(&mut self, rhs: Option<InnerRhs>)
Performs the addition assignment. Read more
sourceimpl<T, Rhs> OptionAddAssign<Rhs, Rhs> for T where
T: OptionOperations + AddAssign<Rhs>,
impl<T, Rhs> OptionAddAssign<Rhs, Rhs> for T where
T: OptionOperations + AddAssign<Rhs>,
sourcepub fn opt_add_assign(&mut self, rhs: Rhs)
pub fn opt_add_assign(&mut self, rhs: Rhs)
Performs the addition assignment. Read more
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, T, InnerRhs> OptionDiv<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionDiv<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
InnerRhs: Copy,
sourceimpl<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>,
sourceimpl<T, Rhs> OptionDiv<Rhs, Rhs> for T where
T: OptionOperations + Div<Rhs>,
impl<T, Rhs> OptionDiv<Rhs, Rhs> for T where
T: OptionOperations + Div<Rhs>,
sourceimpl<'_, 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,
sourcepub fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)
pub fn opt_div_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the division assignment. Read more
sourceimpl<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>,
sourcepub fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)
pub fn opt_div_assign(&mut self, rhs: Option<InnerRhs>)
Performs the division assignment. Read more
sourceimpl<T, Rhs> OptionDivAssign<Rhs, Rhs> for T where
T: OptionOperations + DivAssign<Rhs>,
impl<T, Rhs> OptionDivAssign<Rhs, Rhs> for T where
T: OptionOperations + DivAssign<Rhs>,
sourcepub fn opt_div_assign(&mut self, rhs: Rhs)
pub fn opt_div_assign(&mut self, rhs: Rhs)
Performs the division assignment. Read more
sourceimpl<'_, T, InnerRhs> OptionEq<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionEq<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
sourceimpl<'_, T, Rhs> OptionEq<&'_ Rhs, Rhs> for T where
T: OptionOperations + PartialEq<Rhs>,
impl<'_, T, Rhs> OptionEq<&'_ Rhs, Rhs> for T where
T: OptionOperations + PartialEq<Rhs>,
sourceimpl<T, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
sourceimpl<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>,
sourceimpl<T> OptionMinMax<Option<T>, T> for T where
T: for<'a> OptionOrd<&'a T, T>,
impl<T> OptionMinMax<Option<T>, T> for T where
T: for<'a> OptionOrd<&'a T, T>,
sourceimpl<T> OptionMinMax<T, T> for T where
T: for<'a> OptionOrd<&'a T, T>,
impl<T> OptionMinMax<T, T> for T where
T: for<'a> OptionOrd<&'a T, T>,
sourceimpl<'_, T, InnerRhs> OptionMul<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionMul<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
sourceimpl<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>,
sourceimpl<T, Rhs> OptionMul<Rhs, Rhs> for T where
T: OptionOperations + Mul<Rhs>,
impl<T, Rhs> OptionMul<Rhs, Rhs> for T where
T: OptionOperations + Mul<Rhs>,
sourceimpl<'_, 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,
sourcepub fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)
pub fn opt_mul_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the multiplication assignment. Read more
sourceimpl<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>,
sourcepub fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)
pub fn opt_mul_assign(&mut self, rhs: Option<InnerRhs>)
Performs the multiplication assignment. Read more
sourceimpl<T, Rhs> OptionMulAssign<Rhs, Rhs> for T where
T: OptionOperations + MulAssign<Rhs>,
impl<T, Rhs> OptionMulAssign<Rhs, Rhs> for T where
T: OptionOperations + MulAssign<Rhs>,
sourcepub fn opt_mul_assign(&mut self, rhs: Rhs)
pub fn opt_mul_assign(&mut self, rhs: Rhs)
Performs the multiplication assignment. Read more
sourceimpl<'_, T, InnerRhs> OptionOrd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
impl<'_, T, InnerRhs> OptionOrd<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
sourceimpl<'_, T, Rhs> OptionOrd<&'_ Rhs, Rhs> for T where
T: OptionOperations + PartialOrd<Rhs>,
impl<'_, T, Rhs> OptionOrd<&'_ Rhs, Rhs> for T where
T: OptionOperations + PartialOrd<Rhs>,
sourceimpl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
sourceimpl<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>,
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, T, InnerRhs> OptionRem<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionRem<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
sourceimpl<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>,
sourceimpl<T, Rhs> OptionRem<Rhs, Rhs> for T where
T: OptionOperations + Rem<Rhs>,
impl<T, Rhs> OptionRem<Rhs, Rhs> for T where
T: OptionOperations + Rem<Rhs>,
sourceimpl<'_, 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,
sourcepub fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)
pub fn opt_rem_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the remainder assignment. Read more
sourceimpl<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>,
sourcepub fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)
pub fn opt_rem_assign(&mut self, rhs: Option<InnerRhs>)
Performs the remainder assignment. Read more
sourceimpl<T, Rhs> OptionRemAssign<Rhs, Rhs> for T where
T: OptionOperations + RemAssign<Rhs>,
impl<T, Rhs> OptionRemAssign<Rhs, Rhs> for T where
T: OptionOperations + RemAssign<Rhs>,
sourcepub fn opt_rem_assign(&mut self, rhs: Rhs)
pub fn opt_rem_assign(&mut self, rhs: Rhs)
Performs the remainder assignment. Read more
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, T, InnerRhs> OptionSub<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<'_, T, InnerRhs> OptionSub<&'_ Option<InnerRhs>, InnerRhs> for T where
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
sourceimpl<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>,
sourceimpl<T, Rhs> OptionSub<Rhs, Rhs> for T where
T: OptionOperations + Sub<Rhs>,
impl<T, Rhs> OptionSub<Rhs, Rhs> for T where
T: OptionOperations + Sub<Rhs>,
sourceimpl<'_, 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,
sourcepub fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)
pub fn opt_sub_assign(&mut self, rhs: &Option<InnerRhs>)
Performs the substraction assignment. Read more
sourceimpl<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>,
sourcepub fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)
pub fn opt_sub_assign(&mut self, rhs: Option<InnerRhs>)
Performs the substraction assignment. Read more
sourceimpl<T, Rhs> OptionSubAssign<Rhs, Rhs> for T where
T: OptionOperations + SubAssign<Rhs>,
impl<T, Rhs> OptionSubAssign<Rhs, Rhs> for T where
T: OptionOperations + SubAssign<Rhs>,
sourcepub fn opt_sub_assign(&mut self, rhs: Rhs)
pub fn opt_sub_assign(&mut self, rhs: Rhs)
Performs the substraction assignment. Read more
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<'_, 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.
sourcepub 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
sourceimpl<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.
sourcepub 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more