pub struct ClockTime(_);
Implementations
sourceimpl ClockTime
impl ClockTime
pub const SECOND: ClockTime = _
pub const MSECOND: ClockTime = _
pub const USECOND: ClockTime = _
pub const NSECOND: ClockTime = _
pub const MAX: ClockTime = _
pub const fn hours(self) -> u64
pub const fn minutes(self) -> u64
pub const fn seconds(self) -> u64
pub const fn mseconds(self) -> u64
pub const fn useconds(self) -> u64
pub const fn nseconds(self) -> u64
sourcepub const fn from_seconds(seconds: u64) -> Self
pub const fn from_seconds(seconds: u64) -> Self
Builds a new ClockTime
which value is the given number of seconds.
Panics
Panics if the resulting duration in nanoseconds exceeds the u64
range.
sourcepub const fn from_mseconds(mseconds: u64) -> Self
pub const fn from_mseconds(mseconds: u64) -> Self
Builds a new ClockTime
which value is the given number of milliseconds.
Panics
Panics if the resulting duration in nanoseconds exceeds the u64
range.
sourcepub const fn from_useconds(useconds: u64) -> Self
pub const fn from_useconds(useconds: u64) -> Self
Builds a new ClockTime
which value is the given number of microseconds.
Panics
Panics if the resulting duration in nanoseconds exceeds the u64
range.
sourcepub const fn from_nseconds(nseconds: u64) -> Self
pub const fn from_nseconds(nseconds: u64) -> Self
Builds a new ClockTime
which value is the given number of nanoseconds.
Panics
Panics if the requested duration equals GST_CLOCK_TIME_NONE
(u64::MAX
).
sourceimpl ClockTime
impl ClockTime
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
sourceimpl ClockTime
impl ClockTime
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>
Trait Implementations
sourceimpl AddAssign<ClockTime> for ClockTime
impl AddAssign<ClockTime> for ClockTime
sourcefn add_assign(&mut self, rhs: ClockTime)
fn add_assign(&mut self, rhs: ClockTime)
Performs the
+=
operation. Read moresourceimpl AddAssign<ClockTime> for Signed<ClockTime>
impl AddAssign<ClockTime> for Signed<ClockTime>
sourcefn add_assign(&mut self, other: ClockTime)
fn add_assign(&mut self, other: ClockTime)
Performs the
+=
operation. Read moresourceimpl<'de> Deserialize<'de> for ClockTime
impl<'de> Deserialize<'de> for ClockTime
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 ClockTime
impl Displayable for ClockTime
type DisplayImpl = ClockTime
fn display(self) -> ClockTime
sourceimpl DivAssign<u64> for ClockTime
impl DivAssign<u64> for ClockTime
sourcefn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/=
operation. Read moresourceimpl FormattedValue for ClockTime
impl FormattedValue for ClockTime
sourceimpl From<ClockTime> for GenericFormattedValue
impl From<ClockTime> for GenericFormattedValue
sourceimpl<'a> FromValue<'a> for ClockTime
impl<'a> FromValue<'a> for ClockTime
type Checker = ClockTimeValueTypeOrNoneChecker
type Checker = ClockTimeValueTypeOrNoneChecker
Value type checker.
sourceunsafe fn from_value(value: &Value) -> ClockTime
unsafe fn from_value(value: &Value) -> ClockTime
Get the contained value from a
Value
. Read moresourceimpl MulAssign<u64> for ClockTime
impl MulAssign<u64> for ClockTime
sourcefn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*=
operation. Read moresourceimpl MulDiv<u64> for ClockTime
impl MulDiv<u64> for ClockTime
sourcefn 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 moresourcefn 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 moresourceimpl OptionCheckedAdd<ClockTime, ClockTime> for ClockTime
impl OptionCheckedAdd<ClockTime, ClockTime> for ClockTime
sourceimpl OptionCheckedDiv<ClockTime, ClockTime> for ClockTime
impl OptionCheckedDiv<ClockTime, ClockTime> for ClockTime
sourceimpl OptionCheckedDiv<u64, u64> for ClockTime
impl OptionCheckedDiv<u64, u64> for ClockTime
sourceimpl OptionCheckedMul<ClockTime, ClockTime> for u64
impl OptionCheckedMul<ClockTime, ClockTime> for u64
sourceimpl OptionCheckedMul<u64, u64> for ClockTime
impl OptionCheckedMul<u64, u64> for ClockTime
sourceimpl OptionCheckedRem<ClockTime, ClockTime> for ClockTime
impl OptionCheckedRem<ClockTime, ClockTime> for ClockTime
sourceimpl OptionCheckedRem<u64, u64> for ClockTime
impl OptionCheckedRem<u64, u64> for ClockTime
sourceimpl OptionCheckedSub<ClockTime, ClockTime> for ClockTime
impl OptionCheckedSub<ClockTime, ClockTime> for ClockTime
sourceimpl OptionOverflowingAdd<ClockTime, ClockTime> for ClockTime
impl OptionOverflowingAdd<ClockTime, ClockTime> for ClockTime
sourcefn opt_overflowing_add(self, rhs: Self) -> Option<(Self, bool)>
fn opt_overflowing_add(self, rhs: Self) -> Option<(Self, 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 moresourceimpl OptionOverflowingMul<ClockTime, ClockTime> for u64
impl OptionOverflowingMul<ClockTime, ClockTime> for u64
sourceimpl OptionOverflowingMul<u64, u64> for ClockTime
impl OptionOverflowingMul<u64, u64> for ClockTime
sourceimpl OptionOverflowingSub<ClockTime, ClockTime> for ClockTime
impl OptionOverflowingSub<ClockTime, ClockTime> for ClockTime
sourcefn opt_overflowing_sub(self, rhs: Self) -> Option<(Self, bool)>
fn opt_overflowing_sub(self, rhs: Self) -> Option<(Self, 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 moresourceimpl OptionSaturatingAdd<ClockTime, ClockTime> for ClockTime
impl OptionSaturatingAdd<ClockTime, ClockTime> for ClockTime
sourceimpl OptionSaturatingMul<ClockTime, ClockTime> for u64
impl OptionSaturatingMul<ClockTime, ClockTime> for u64
sourceimpl OptionSaturatingMul<u64, u64> for ClockTime
impl OptionSaturatingMul<u64, u64> for ClockTime
sourceimpl OptionSaturatingSub<ClockTime, ClockTime> for ClockTime
impl OptionSaturatingSub<ClockTime, ClockTime> for ClockTime
sourceimpl OptionWrappingAdd<ClockTime, ClockTime> for ClockTime
impl OptionWrappingAdd<ClockTime, ClockTime> for ClockTime
sourceimpl OptionWrappingMul<ClockTime, ClockTime> for u64
impl OptionWrappingMul<ClockTime, ClockTime> for u64
sourceimpl OptionWrappingMul<u64, u64> for ClockTime
impl OptionWrappingMul<u64, u64> for ClockTime
sourceimpl OptionWrappingSub<ClockTime, ClockTime> for ClockTime
impl OptionWrappingSub<ClockTime, ClockTime> for ClockTime
sourceimpl Ord for ClockTime
impl Ord for ClockTime
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Signed<ClockTime>> for ClockTime
impl PartialEq<Signed<ClockTime>> for ClockTime
sourceimpl PartialOrd<ClockTime> for ClockTime
impl PartialOrd<ClockTime> for ClockTime
sourcefn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
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 moresourceimpl PartialOrd<ClockTime> for Signed<ClockTime>
impl PartialOrd<ClockTime> for Signed<ClockTime>
sourcefn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
fn partial_cmp(&self, other: &ClockTime) -> Option<Ordering>
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 moresourceimpl PartialOrd<Signed<ClockTime>> for ClockTime
impl PartialOrd<Signed<ClockTime>> for ClockTime
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 moresourceimpl RemAssign<u64> for ClockTime
impl RemAssign<u64> for ClockTime
sourcefn rem_assign(&mut self, rhs: u64)
fn rem_assign(&mut self, rhs: u64)
Performs the
%=
operation. Read moresourceimpl SubAssign<ClockTime> for ClockTime
impl SubAssign<ClockTime> for ClockTime
sourcefn sub_assign(&mut self, rhs: ClockTime)
fn sub_assign(&mut self, rhs: ClockTime)
Performs the
-=
operation. Read moresourceimpl SubAssign<ClockTime> for Signed<ClockTime>
impl SubAssign<ClockTime> for Signed<ClockTime>
sourcefn sub_assign(&mut self, other: ClockTime)
fn sub_assign(&mut self, other: ClockTime)
Performs the
-=
operation. Read moresourceimpl ToValueOptional for ClockTime
impl ToValueOptional for ClockTime
sourcefn to_value_optional(opt: Option<&Self>) -> Value
fn to_value_optional(opt: Option<&Self>) -> Value
Convert an
Option
to a Value
.sourceimpl TryFrom<u64> for ClockTime
impl TryFrom<u64> for ClockTime
type Error = GlibNoneError
type Error = GlibNoneError
The type returned in the event of a conversion error.
sourcefn try_from(v: u64) -> Result<Self, GlibNoneError>
fn try_from(v: u64) -> Result<Self, GlibNoneError>
Performs the conversion.
sourceimpl TryFromGlib<i64> for ClockTime
impl TryFromGlib<i64> for ClockTime
type Error = GlibNoneError
unsafe fn try_from_glib(val: i64) -> Result<Self, GlibNoneError>
sourceimpl UnsignedIntoSigned for ClockTime
impl UnsignedIntoSigned for ClockTime
type Signed = Signed<ClockTime>
sourcefn into_positive(self) -> Self::Signed
fn into_positive(self) -> Self::Signed
Converts
self
into a Signed::Positive
.sourcefn into_negative(self) -> Self::Signed
fn into_negative(self) -> Self::Signed
Converts
self
into a Signed::Negative
.sourcefn 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 ClockTime
impl Eq for ClockTime
impl FormattedValueIntrinsic for ClockTime
impl OptionOperations for ClockTime
impl SignedIntrinsic for ClockTime
impl SpecificFormattedValue for ClockTime
impl SpecificFormattedValueIntrinsic for ClockTime
impl StructuralEq for ClockTime
impl StructuralPartialEq for ClockTime
Auto Trait Implementations
impl RefUnwindSafe for ClockTime
impl Send for ClockTime
impl Sync for ClockTime
impl Unpin for ClockTime
impl UnwindSafe for ClockTime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, InnerRhs> OptionAdd<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionAdd<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAdd<InnerRhs, InnerRhs>,
impl<T, Rhs> OptionAdd<Rhs, Rhs> for Twhere
T: OptionOperations + Add<Rhs>,
impl<T, Rhs> OptionAdd<Rhs, Rhs> for Twhere
T: OptionOperations + Add<Rhs>,
impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAddAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionAddAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAddAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
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, InnerRhs>,
impl<T, InnerRhs> OptionAddAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionAddAssign<InnerRhs, 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, Rhs> for Twhere
T: OptionOperations + AddAssign<Rhs>,
impl<T, Rhs> OptionAddAssign<Rhs, 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 Twhere
T: OptionOperations + OptionCheckedAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionCheckedAdd<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionCheckedAdd<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionCheckedDiv<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionCheckedDiv<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionCheckedDiv<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionCheckedMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionCheckedMul<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionCheckedMul<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionCheckedRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionCheckedRem<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionCheckedRem<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionCheckedSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionCheckedSub<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionCheckedSub<Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionDiv<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionDiv<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionDiv<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDiv<InnerRhs, InnerRhs>,
impl<T, Rhs> OptionDiv<Rhs, Rhs> for Twhere
T: OptionOperations + Div<Rhs>,
impl<T, Rhs> OptionDiv<Rhs, Rhs> for Twhere
T: OptionOperations + Div<Rhs>,
impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDivAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionDivAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDivAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
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, InnerRhs>,
impl<T, InnerRhs> OptionDivAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionDivAssign<InnerRhs, 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, Rhs> for Twhere
T: OptionOperations + DivAssign<Rhs>,
impl<T, Rhs> OptionDivAssign<Rhs, 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, InnerRhs> OptionEq<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionEq<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
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, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionEq<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + for<'a> OptionEq<&'a InnerRhs, InnerRhs>,
impl<T, Rhs> OptionEq<Rhs, Rhs> for Twhere
T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,
impl<T, Rhs> OptionEq<Rhs, Rhs> for Twhere
T: OptionOperations + for<'a> OptionEq<&'a Rhs, Rhs>,
impl<T> OptionMinMax<Option<T>, T> for Twhere
T: for<'a> OptionOrd<&'a T, T>,
impl<T> OptionMinMax<Option<T>, T> for Twhere
T: for<'a> OptionOrd<&'a T, T>,
impl<T> OptionMinMax<T, T> for Twhere
T: for<'a> OptionOrd<&'a T, T>,
impl<T> OptionMinMax<T, T> for Twhere
T: for<'a> OptionOrd<&'a T, T>,
impl<T, InnerRhs> OptionMul<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionMul<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMul<InnerRhs, InnerRhs>,
impl<T, Rhs> OptionMul<Rhs, Rhs> for Twhere
T: OptionOperations + Mul<Rhs>,
impl<T, Rhs> OptionMul<Rhs, Rhs> for Twhere
T: OptionOperations + Mul<Rhs>,
impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMulAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionMulAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMulAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
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, InnerRhs>,
impl<T, InnerRhs> OptionMulAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionMulAssign<InnerRhs, 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, Rhs> for Twhere
T: OptionOperations + MulAssign<Rhs>,
impl<T, Rhs> OptionMulAssign<Rhs, 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 Twhere
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOrd<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
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 Twhere
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOrd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + for<'a> OptionOrd<&'a InnerRhs, InnerRhs>,
impl<T, Rhs> OptionOrd<Rhs, Rhs> for Twhere
T: OptionOperations + for<'a> OptionOrd<&'a Rhs, Rhs>,
impl<T, Rhs> OptionOrd<Rhs, Rhs> for Twhere
T: OptionOperations + for<'a> OptionOrd<&'a Rhs, Rhs>,
impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionOverflowingAdd<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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 moreimpl<T, InnerRhs> OptionOverflowingAdd<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingAdd<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOverflowingAdd<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 moreimpl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionOverflowingMul<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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 moreimpl<T, InnerRhs> OptionOverflowingMul<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingMul<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOverflowingMul<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 moreimpl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionOverflowingSub<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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 moreimpl<T, InnerRhs> OptionOverflowingSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionOverflowingSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionOverflowingSub<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 moreimpl<T, InnerRhs> OptionRem<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionRem<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionRem<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionRem<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRem<InnerRhs, InnerRhs>,
impl<T, Rhs> OptionRem<Rhs, Rhs> for Twhere
T: OptionOperations + Rem<Rhs>,
impl<T, Rhs> OptionRem<Rhs, Rhs> for Twhere
T: OptionOperations + Rem<Rhs>,
impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRemAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionRemAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRemAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
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, InnerRhs>,
impl<T, InnerRhs> OptionRemAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionRemAssign<InnerRhs, 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, Rhs> for Twhere
T: OptionOperations + RemAssign<Rhs>,
impl<T, Rhs> OptionRemAssign<Rhs, 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 Twhere
T: OptionOperations + OptionSaturatingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionSaturatingAdd<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionSaturatingAdd<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionSaturatingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionSaturatingMul<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionSaturatingMul<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionSaturatingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionSaturatingSub<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionSaturatingSub<Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionSub<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
impl<T, InnerRhs> OptionSub<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSub<InnerRhs, InnerRhs>,
impl<T, Rhs> OptionSub<Rhs, Rhs> for Twhere
T: OptionOperations + Sub<Rhs>,
impl<T, Rhs> OptionSub<Rhs, Rhs> for Twhere
T: OptionOperations + Sub<Rhs>,
impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSubAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionSubAssign<&Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSubAssign<InnerRhs, InnerRhs>,
InnerRhs: Copy,
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, InnerRhs>,
impl<T, InnerRhs> OptionSubAssign<Option<InnerRhs>, InnerRhs> for Twhere
T: OptionOperations + OptionSubAssign<InnerRhs, 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, Rhs> for Twhere
T: OptionOperations + SubAssign<Rhs>,
impl<T, Rhs> OptionSubAssign<Rhs, 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 Twhere
T: OptionOperations + OptionWrappingAdd<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionWrappingAdd<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionWrappingAdd<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionWrappingMul<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionWrappingMul<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionWrappingMul<Option<InnerRhs>, InnerRhs> for Twhere
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.
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 Twhere
T: OptionOperations + OptionWrappingSub<InnerRhs, InnerRhs>,
InnerRhs: Copy,
impl<T, InnerRhs> OptionWrappingSub<&Option<InnerRhs>, InnerRhs> for Twhere
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.
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, InnerRhs>,
impl<T, InnerRhs> OptionWrappingSub<Option<InnerRhs>, InnerRhs> for Twhere
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.
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
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.