Struct competitive_programming_rs::math::mod_int::ModInt
[−]
[src]
pub struct ModInt<T> { /* fields omitted */ }
Methods
impl<T> ModInt<T>[src]
Trait Implementations
impl<T: Copy> Copy for ModInt<T>[src]
impl<T> Clone for ModInt<T> where
T: Copy, [src]
T: Copy,
fn clone(&self) -> Self[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &ModInt<T>)[src]
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]
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]
Performs the + operation.
impl<T> Add<T> for ModInt<T> where
T: Add<Output = T> + Sub<Output = T> + Copy + PartialOrd, [src]
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]
Performs the + operation.
impl<T> Mul<ModInt<T>> for ModInt<T> where
T: Mul<Output = T> + Rem<Output = T> + Copy, [src]
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]
Performs the * operation.
impl<T> Mul<T> for ModInt<T> where
T: Mul<Output = T> + Rem<Output = T> + Copy, [src]
T: Mul<Output = T> + Rem<Output = T> + Copy,