Struct Checked
pub struct Checked<T>(pub CtOption<T>);Expand description
Tuple Fields§
§0: CtOption<T>Implementations§
Trait Implementations§
§impl AddAssign<&Checked<Limb>> for Checked<Limb>
impl AddAssign<&Checked<Limb>> for Checked<Limb>
§fn add_assign(&mut self, other: &Checked<Limb>)
fn add_assign(&mut self, other: &Checked<Limb>)
Performs the
+= operation. Read more§impl<const LIMBS: usize> AddAssign<&Checked<Uint<LIMBS>>> for Checked<Uint<LIMBS>>
impl<const LIMBS: usize> AddAssign<&Checked<Uint<LIMBS>>> for Checked<Uint<LIMBS>>
§fn add_assign(&mut self, other: &Checked<Uint<LIMBS>>)
fn add_assign(&mut self, other: &Checked<Uint<LIMBS>>)
Performs the
+= operation. Read more§impl AddAssign for Checked<Limb>
impl AddAssign for Checked<Limb>
§fn add_assign(&mut self, other: Checked<Limb>)
fn add_assign(&mut self, other: Checked<Limb>)
Performs the
+= operation. Read more§impl<const LIMBS: usize> AddAssign for Checked<Uint<LIMBS>>
impl<const LIMBS: usize> AddAssign for Checked<Uint<LIMBS>>
§fn add_assign(&mut self, other: Checked<Uint<LIMBS>>)
fn add_assign(&mut self, other: Checked<Uint<LIMBS>>)
Performs the
+= operation. Read more§impl<T> ConditionallySelectable for Checked<T>where
T: ConditionallySelectable,
impl<T> ConditionallySelectable for Checked<T>where
T: ConditionallySelectable,
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 more§impl<T> ConstantTimeEq for Checked<T>where
T: ConstantTimeEq,
impl<T> ConstantTimeEq for Checked<T>where
T: ConstantTimeEq,
§impl<const LIMBS: usize, const HLIMBS: usize> Mul<&Checked<Uint<HLIMBS>>> for &Checked<Uint<LIMBS>>
impl<const LIMBS: usize, const HLIMBS: usize> Mul<&Checked<Uint<HLIMBS>>> for &Checked<Uint<LIMBS>>
§impl MulAssign<&Checked<Limb>> for Checked<Limb>
impl MulAssign<&Checked<Limb>> for Checked<Limb>
§fn mul_assign(&mut self, other: &Checked<Limb>)
fn mul_assign(&mut self, other: &Checked<Limb>)
Performs the
*= operation. Read more§impl<const LIMBS: usize, const HLIMBS: usize> MulAssign<&Checked<Uint<HLIMBS>>> for Checked<Uint<LIMBS>>
impl<const LIMBS: usize, const HLIMBS: usize> MulAssign<&Checked<Uint<HLIMBS>>> for Checked<Uint<LIMBS>>
§fn mul_assign(&mut self, other: &Checked<Uint<HLIMBS>>)
fn mul_assign(&mut self, other: &Checked<Uint<HLIMBS>>)
Performs the
*= operation. Read more§impl<const LIMBS: usize, const HLIMBS: usize> MulAssign<Checked<Uint<HLIMBS>>> for Checked<Uint<LIMBS>>
impl<const LIMBS: usize, const HLIMBS: usize> MulAssign<Checked<Uint<HLIMBS>>> for Checked<Uint<LIMBS>>
§fn mul_assign(&mut self, other: Checked<Uint<HLIMBS>>)
fn mul_assign(&mut self, other: Checked<Uint<HLIMBS>>)
Performs the
*= operation. Read more§impl MulAssign for Checked<Limb>
impl MulAssign for Checked<Limb>
§fn mul_assign(&mut self, other: Checked<Limb>)
fn mul_assign(&mut self, other: Checked<Limb>)
Performs the
*= operation. Read more§impl SubAssign<&Checked<Limb>> for Checked<Limb>
impl SubAssign<&Checked<Limb>> for Checked<Limb>
§fn sub_assign(&mut self, other: &Checked<Limb>)
fn sub_assign(&mut self, other: &Checked<Limb>)
Performs the
-= operation. Read more§impl<const LIMBS: usize> SubAssign<&Checked<Uint<LIMBS>>> for Checked<Uint<LIMBS>>
impl<const LIMBS: usize> SubAssign<&Checked<Uint<LIMBS>>> for Checked<Uint<LIMBS>>
§fn sub_assign(&mut self, other: &Checked<Uint<LIMBS>>)
fn sub_assign(&mut self, other: &Checked<Uint<LIMBS>>)
Performs the
-= operation. Read more§impl SubAssign for Checked<Limb>
impl SubAssign for Checked<Limb>
§fn sub_assign(&mut self, other: Checked<Limb>)
fn sub_assign(&mut self, other: Checked<Limb>)
Performs the
-= operation. Read more§impl<const LIMBS: usize> SubAssign for Checked<Uint<LIMBS>>
impl<const LIMBS: usize> SubAssign for Checked<Uint<LIMBS>>
§fn sub_assign(&mut self, other: Checked<Uint<LIMBS>>)
fn sub_assign(&mut self, other: Checked<Uint<LIMBS>>)
Performs the
-= operation. Read moreimpl<T> Copy for Checked<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for Checked<T>where
T: Freeze,
impl<T> RefUnwindSafe for Checked<T>where
T: RefUnwindSafe,
impl<T> Send for Checked<T>where
T: Send,
impl<T> Sync for Checked<T>where
T: Sync,
impl<T> Unpin for Checked<T>where
T: Unpin,
impl<T> UnwindSafe for Checked<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more