pub struct Modular<M> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<M: Modulus + Copy> AddAssign<Modular<M>> for Modular<M>
impl<M: Modulus + Copy> AddAssign<Modular<M>> for Modular<M>
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the +=
operation. Read more
sourceimpl<M: Modulus + IsPrime + Copy> DivAssign<Modular<M>> for Modular<M>
impl<M: Modulus + IsPrime + Copy> DivAssign<Modular<M>> for Modular<M>
sourcefn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the /=
operation. Read more
sourceimpl<M: Modulus + Copy> MulAssign<Modular<M>> for Modular<M>
impl<M: Modulus + Copy> MulAssign<Modular<M>> for Modular<M>
sourcefn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the *=
operation. Read more
sourceimpl<M: Modulus + Copy> SubAssign<Modular<M>> for Modular<M>
impl<M: Modulus + Copy> SubAssign<Modular<M>> for Modular<M>
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the -=
operation. Read more
impl<M: Modulus> Associative<Modular<M>, Add> for Modular<M>
impl<M: Modulus> Associative<Modular<M>, Mul> for Modular<M>
impl<M: Copy> Copy for Modular<M>
impl<M: Eq> Eq for Modular<M>
impl<M> StructuralEq for Modular<M>
impl<M> StructuralPartialEq for Modular<M>
Auto Trait Implementations
impl<M> RefUnwindSafe for Modular<M> where
M: RefUnwindSafe,
impl<M> Send for Modular<M> where
M: Send,
impl<M> Sync for Modular<M> where
M: Sync,
impl<M> Unpin for Modular<M> where
M: Unpin,
impl<M> UnwindSafe for Modular<M> where
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more