Struct num_modular::MontgomeryBigint
source · [−]pub struct MontgomeryBigint<T: Integer + Montgomery> { /* private fields */ }
Expand description
A big integer represented in Montgomery form, it implements ModularInteger interface and it’s generally more efficient than the vanilla integer in modular operations.
The modulus is stored in heap to prevent frequent copying
Implementations
Trait Implementations
impl<T: Integer + Montgomery + Clone> ModularInteger for MontgomeryBigint<T> where
T::Double: From<T>,
impl<T: Integer + Montgomery + Clone> ModularInteger for MontgomeryBigint<T> where
T::Double: From<T>,
Auto Trait Implementations
impl<T> RefUnwindSafe for MontgomeryBigint<T> where
T: RefUnwindSafe,
<T as Montgomery>::Inv: RefUnwindSafe,
impl<T> !Send for MontgomeryBigint<T>
impl<T> !Sync for MontgomeryBigint<T>
impl<T> Unpin for MontgomeryBigint<T> where
T: Unpin,
impl<T> UnwindSafe for MontgomeryBigint<T> where
T: UnwindSafe + RefUnwindSafe,
<T as Montgomery>::Inv: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more