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,
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][−]
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][−]
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][−]
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,