Struct competitive_programming_rs::math::mod_int::ModInt [−][src]
pub struct ModInt<T> { /* fields omitted */ }Methods
impl<T> ModInt<T>[src]
impl<T> ModInt<T>Trait Implementations
impl<T: Copy> Copy for ModInt<T>[src]
impl<T: Copy> Copy for ModInt<T>impl<T> Clone for ModInt<T> where
T: Copy, [src]
impl<T> Clone for ModInt<T> where
T: Copy, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &ModInt<T>)[src]
fn clone_from(&mut self, source: &ModInt<T>)Performs copy-assignment from source. Read more
impl<T> Add<ModInt<T>> for ModInt<T> where
T: Add<Output = T> + Sub<Output = T> + Copy + PartialOrd, [src]
impl<T> Add<ModInt<T>> for ModInt<T> where
T: Add<Output = T> + Sub<Output = T> + Copy + PartialOrd, type Output = ModInt<T>
The resulting type after applying the + operator.
fn add(self, rhs: ModInt<T>) -> ModInt<T>[src]
fn add(self, rhs: ModInt<T>) -> ModInt<T>Performs the + operation.
impl<T> Add<T> for ModInt<T> where
T: Add<Output = T> + Sub<Output = T> + Copy + PartialOrd, [src]
impl<T> Add<T> for ModInt<T> where
T: Add<Output = T> + Sub<Output = T> + Copy + PartialOrd, type Output = ModInt<T>
The resulting type after applying the + operator.
fn add(self, rhs: T) -> ModInt<T>[src]
fn add(self, rhs: T) -> ModInt<T>Performs the + operation.
impl<T> Mul<ModInt<T>> for ModInt<T> where
T: Mul<Output = T> + Rem<Output = T> + Copy, [src]
impl<T> Mul<ModInt<T>> for ModInt<T> where
T: Mul<Output = T> + Rem<Output = T> + Copy, type Output = ModInt<T>
The resulting type after applying the * operator.
fn mul(self, rhs: ModInt<T>) -> ModInt<T>[src]
fn mul(self, rhs: ModInt<T>) -> ModInt<T>Performs the * operation.
impl<T> Mul<T> for ModInt<T> where
T: Mul<Output = T> + Rem<Output = T> + Copy, [src]
impl<T> Mul<T> for ModInt<T> where
T: Mul<Output = T> + Rem<Output = T> + Copy,