pub struct ModMathForm<T: ModMathInt> { /* private fields */ }Available on crate feature
modmath only.Expand description
A value held in Montgomery form modulo a ModMathParams modulus.
integer_mont stores a * R mod N, where R = 2^W and W = type_bit_width::<T>().
Trait Implementations§
Source§impl<T: Clone + ModMathInt> Clone for ModMathForm<T>
impl<T: Clone + ModMathInt> Clone for ModMathForm<T>
Source§fn clone(&self) -> ModMathForm<T>
fn clone(&self) -> ModMathForm<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for ModMathForm<T>where
T: Freeze,
impl<T> RefUnwindSafe for ModMathForm<T>where
T: RefUnwindSafe,
impl<T> Send for ModMathForm<T>where
T: Send,
impl<T> Sync for ModMathForm<T>where
T: Sync,
impl<T> Unpin for ModMathForm<T>where
T: Unpin,
impl<T> UnsafeUnpin for ModMathForm<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ModMathForm<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