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