Struct competitive_programming_rs::math::mod_int::mod_int::ModInt[][src]

pub struct ModInt(_);

Implementations

impl ModInt[src]

pub fn new<T>(v: T) -> Self where
    i64: From<T>, 
[src]

pub fn internal_pow(&self, mut e: i64) -> Self[src]

pub fn pow<T>(&self, e: T) -> Self where
    i64: From<T>, 
[src]

pub fn value(&self) -> i64[src]

Trait Implementations

impl<T> Add<T> for ModInt where
    i64: From<T>, 
[src]

type Output = ModInt

The resulting type after applying the + operator.

impl<T> AddAssign<T> for ModInt where
    i64: From<T>, 
[src]

impl Clone for ModInt[src]

impl Copy for ModInt[src]

impl<T> Div<T> for ModInt where
    i64: From<T>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl<T> DivAssign<T> for ModInt where
    i64: From<T>, 
[src]

impl<T> Mul<T> for ModInt where
    i64: From<T>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> MulAssign<T> for ModInt where
    i64: From<T>, 
[src]

impl<T> Sub<T> for ModInt where
    i64: From<T>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T> SubAssign<T> for ModInt where
    i64: From<T>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.