pub struct Wrapping<T>(pub T);Expand description
Provides intentionally-wrapped arithmetic on T.
This is analogous to core::num::Wrapping but allows this crate to
define trait impls for this type.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: WrappingAdd> Add for Wrapping<T>
impl<T: WrappingAdd> Add for Wrapping<T>
Source§impl<const LIMBS: usize> AddAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> AddAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
Source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
Performs the
+= operation. Read moreSource§impl AddAssign<&Wrapping<Limb>> for Wrapping<Limb>
impl AddAssign<&Wrapping<Limb>> for Wrapping<Limb>
Source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
Performs the
+= operation. Read moreSource§impl<const LIMBS: usize> AddAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> AddAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
Performs the
+= operation. Read moreSource§impl<Rhs: AsRef<UintRef>> AddAssign<Rhs> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsRef<UintRef>> AddAssign<Rhs> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn add_assign(&mut self, other: Rhs)
fn add_assign(&mut self, other: Rhs)
Performs the
+= operation. Read moreSource§impl<const LIMBS: usize> AddAssign for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> AddAssign for Wrapping<Int<LIMBS>>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl AddAssign for Wrapping<Limb>
impl AddAssign for Wrapping<Limb>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl<const LIMBS: usize> AddAssign for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> AddAssign for Wrapping<Uint<LIMBS>>
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl BitAnd<&Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitAnd<&Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitAnd<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitAnd<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitAnd<Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitAnd<Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitAndAssign<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitAndAssign<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn bitand_assign(&mut self, other: &Self)
fn bitand_assign(&mut self, other: &Self)
Performs the
&= operation. Read moreSource§impl<const LIMBS: usize> BitAndAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> BitAndAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
Source§fn bitand_assign(&mut self, other: &Self)
fn bitand_assign(&mut self, other: &Self)
Performs the
&= operation. Read moreSource§impl<const LIMBS: usize> BitAndAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> BitAndAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§fn bitand_assign(&mut self, other: &Self)
fn bitand_assign(&mut self, other: &Self)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitAndAssign for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl<const LIMBS: usize> BitAndAssign for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> BitAndAssign for Wrapping<Int<LIMBS>>
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl<const LIMBS: usize> BitAndAssign for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> BitAndAssign for Wrapping<Uint<LIMBS>>
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&= operation. Read moreSource§impl BitOr<&Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitOr<&Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitOr<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitOr<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitOr<Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitOr<Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitOrAssign<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitOrAssign<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn bitor_assign(&mut self, other: &Self)
fn bitor_assign(&mut self, other: &Self)
Performs the
|= operation. Read moreSource§impl<const LIMBS: usize> BitOrAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> BitOrAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
Source§fn bitor_assign(&mut self, other: &Self)
fn bitor_assign(&mut self, other: &Self)
Performs the
|= operation. Read moreSource§impl<const LIMBS: usize> BitOrAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> BitOrAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§fn bitor_assign(&mut self, other: &Self)
fn bitor_assign(&mut self, other: &Self)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitOrAssign for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl<const LIMBS: usize> BitOrAssign for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> BitOrAssign for Wrapping<Int<LIMBS>>
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl<const LIMBS: usize> BitOrAssign for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> BitOrAssign for Wrapping<Uint<LIMBS>>
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|= operation. Read moreSource§impl BitXor<&Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitXor<&Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitXor<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitXor<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitXor<Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitXor<Wrapping<BoxedUint>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl BitXorAssign<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitXorAssign<&Wrapping<BoxedUint>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn bitxor_assign(&mut self, other: &Self)
fn bitxor_assign(&mut self, other: &Self)
Performs the
^= operation. Read moreSource§impl<const LIMBS: usize> BitXorAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> BitXorAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
Source§fn bitxor_assign(&mut self, other: &Self)
fn bitxor_assign(&mut self, other: &Self)
Performs the
^= operation. Read moreSource§impl<const LIMBS: usize> BitXorAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> BitXorAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§fn bitxor_assign(&mut self, other: &Self)
fn bitxor_assign(&mut self, other: &Self)
Performs the
^= operation. Read moreSource§impl BitXorAssign for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl BitXorAssign for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl<const LIMBS: usize> BitXorAssign for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> BitXorAssign for Wrapping<Int<LIMBS>>
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl<const LIMBS: usize> BitXorAssign for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> BitXorAssign for Wrapping<Uint<LIMBS>>
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^= operation. Read moreSource§impl<T> ConditionallySelectable for Wrapping<T>
Available on crate feature subtle only.
impl<T> ConditionallySelectable for Wrapping<T>
Available on crate feature
subtle only.Source§fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read moreSource§impl<T> ConstantTimeEq for Wrapping<T>where
Self: CtEq,
Available on crate feature subtle only.
impl<T> ConstantTimeEq for Wrapping<T>where
Self: CtEq,
Available on crate feature
subtle only.Source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for Wrapping<T>
Available on crate feature serde only.
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Wrapping<T>
Available on crate feature
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<Rhs: ToUnsigned + ?Sized> Div<&NonZero<Rhs>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: ToUnsigned + ?Sized> Div<&NonZero<Rhs>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl<Rhs: ToUnsigned + ?Sized> Div<&NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: ToUnsigned + ?Sized> Div<&NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<Rhs: AsMut<UintRef>> Div<NonZero<Rhs>> for &Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsMut<UintRef>> Div<NonZero<Rhs>> for &Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl<Rhs: AsMut<UintRef>> Div<NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsMut<UintRef>> Div<NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Div<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§impl<Rhs: ToUnsigned + ?Sized> DivAssign<&NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: ToUnsigned + ?Sized> DivAssign<&NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn div_assign(&mut self, rhs: &NonZero<Rhs>)
fn div_assign(&mut self, rhs: &NonZero<Rhs>)
Performs the
/= operation. Read moreSource§impl<const LIMBS: usize, const RHS_LIMBS: usize> DivAssign<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> DivAssign<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§impl<Rhs: AsMut<UintRef>> DivAssign<NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsMut<UintRef>> DivAssign<NonZero<Rhs>> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn div_assign(&mut self, rhs: NonZero<Rhs>)
fn div_assign(&mut self, rhs: NonZero<Rhs>)
Performs the
/= operation. Read moreSource§impl<const LIMBS: usize, const RHS_LIMBS: usize> DivAssign<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> DivAssign<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§impl<T: WrappingMul> Mul for Wrapping<T>
impl<T: WrappingMul> Mul for Wrapping<T>
Source§impl MulAssign<&Wrapping<Limb>> for Wrapping<Limb>
impl MulAssign<&Wrapping<Limb>> for Wrapping<Limb>
Source§fn mul_assign(&mut self, other: &Self)
fn mul_assign(&mut self, other: &Self)
Performs the
*= operation. Read moreSource§impl<Rhs: AsRef<UintRef>> MulAssign<Rhs> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsRef<UintRef>> MulAssign<Rhs> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn mul_assign(&mut self, other: Rhs)
fn mul_assign(&mut self, other: Rhs)
Performs the
*= operation. Read moreSource§impl MulAssign for Wrapping<Limb>
impl MulAssign for Wrapping<Limb>
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl<T: WrappingNeg> Neg for &Wrapping<T>
impl<T: WrappingNeg> Neg for &Wrapping<T>
Source§impl<T: WrappingNeg> Neg for Wrapping<T>
impl<T: WrappingNeg> Neg for Wrapping<T>
Source§impl<T: Ord> Ord for Wrapping<T>
impl<T: Ord> Ord for Wrapping<T>
1.21.0 · Source§fn 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
Source§impl<T: PartialOrd> PartialOrd for Wrapping<T>
impl<T: PartialOrd> PartialOrd for Wrapping<T>
Source§impl<Rhs: AsRef<UintRef>> PowBoundedExp<Rhs> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsRef<UintRef>> PowBoundedExp<Rhs> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> PowBoundedExp<Uint<RHS_LIMBS>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> PowBoundedExp<Uint<RHS_LIMBS>> for Wrapping<Uint<LIMBS>>
Source§impl<T: Random> Random for Wrapping<T>
Available on crate feature rand_core only.
impl<T: Random> Random for Wrapping<T>
Available on crate feature
rand_core only.Source§fn try_random_from_rng<R: TryRng + ?Sized>(
rng: &mut R,
) -> Result<Self, R::Error>
fn try_random_from_rng<R: TryRng + ?Sized>( rng: &mut R, ) -> Result<Self, R::Error>
Generate a random value. Read more
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<&NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Int<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Int<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for &Wrapping<Uint<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Int<LIMBS>>
Source§impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize, const RHS_LIMBS: usize> Rem<NonZero<Uint<RHS_LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§impl<T: WrappingSub> Sub for Wrapping<T>
impl<T: WrappingSub> Sub for Wrapping<T>
Source§impl<const LIMBS: usize> SubAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> SubAssign<&Wrapping<Int<LIMBS>>> for Wrapping<Int<LIMBS>>
Source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
Performs the
-= operation. Read moreSource§impl SubAssign<&Wrapping<Limb>> for Wrapping<Limb>
impl SubAssign<&Wrapping<Limb>> for Wrapping<Limb>
Source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
Performs the
-= operation. Read moreSource§impl<const LIMBS: usize> SubAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> SubAssign<&Wrapping<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
Source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
Performs the
-= operation. Read moreSource§impl<Rhs: AsRef<UintRef>> SubAssign<Rhs> for Wrapping<BoxedUint>
Available on crate feature alloc only.
impl<Rhs: AsRef<UintRef>> SubAssign<Rhs> for Wrapping<BoxedUint>
Available on crate feature
alloc only.Source§fn sub_assign(&mut self, other: Rhs)
fn sub_assign(&mut self, other: Rhs)
Performs the
-= operation. Read moreSource§impl<const LIMBS: usize> SubAssign for Wrapping<Int<LIMBS>>
impl<const LIMBS: usize> SubAssign for Wrapping<Int<LIMBS>>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl SubAssign for Wrapping<Limb>
impl SubAssign for Wrapping<Limb>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreSource§impl<const LIMBS: usize> SubAssign for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> SubAssign for Wrapping<Uint<LIMBS>>
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-= operation. Read moreimpl<T: Copy> Copy for Wrapping<T>
impl<T: Eq> Eq for Wrapping<T>
impl<T> StructuralPartialEq for Wrapping<T>
Auto Trait Implementations§
impl<T> Freeze for Wrapping<T>where
T: Freeze,
impl<T> RefUnwindSafe for Wrapping<T>where
T: RefUnwindSafe,
impl<T> Send for Wrapping<T>where
T: Send,
impl<T> Sync for Wrapping<T>where
T: Sync,
impl<T> Unpin for Wrapping<T>where
T: Unpin,
impl<T> UnsafeUnpin for Wrapping<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Wrapping<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more