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]

Returns a copy of the value. Read more

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]

The resulting type after applying the + operator.

Performs the + operation.

impl<T> Add<T> for ModInt<T> where
    T: Add<Output = T> + Sub<Output = T> + Copy + PartialOrd
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T> Mul<ModInt<T>> for ModInt<T> where
    T: Mul<Output = T> + Rem<Output = T> + Copy
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl<T> Mul<T> for ModInt<T> where
    T: Mul<Output = T> + Rem<Output = T> + Copy
[src]

The resulting type after applying the * operator.

Performs the * operation.

Auto Trait Implementations

impl<T> Send for ModInt<T> where
    T: Send

impl<T> Sync for ModInt<T> where
    T: Sync