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

pub struct ModInt<T> { /* fields omitted */ }

Implementations

impl<T> ModInt<T> where
    T: Copy
[src]

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

pub fn modulo(&self) -> T[src]

impl<T> ModInt<T> where
    T: Copy + RemAssign + PartialOrd
[src]

pub fn new(v: T, modulo: T) -> Self[src]

impl<T> ModInt<T> where
    T: Copy + Sub<Output = T> + ShrAssign + BitAnd<Output = T> + PartialEq + PartialOrd + Div<Output = T> + RemAssign,
    ModInt<T>: MulAssign
[src]

pub fn pow(self, e: T) -> Self[src]

Trait Implementations

impl<T> Add<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Add<T, Output = ModInt<T>>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<T> Add<T> for ModInt<T> where
    T: AddAssign + SubAssign + RemAssign + Copy + PartialOrd
[src]

type Output = Self

The resulting type after applying the + operator.

impl<T> AddAssign<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Add<ModInt<T>, Output = ModInt<T>>, 
[src]

impl<T> AddAssign<T> for ModInt<T> where
    T: Copy,
    ModInt<T>: Add<T, Output = ModInt<T>>, 
[src]

impl<T> Clone for ModInt<T> where
    T: Copy
[src]

impl<T> Copy for ModInt<T> where
    T: Copy
[src]

impl<T> Div<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Div<T, Output = ModInt<T>>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl<T> Div<T> for ModInt<T> where
    T: Copy + Add<Output = T> + Sub<Output = T> + Div<Output = T> + BitAnd<Output = T> + PartialEq + PartialOrd + ShrAssign + RemAssign + MulAssign
[src]

type Output = Self

The resulting type after applying the / operator.

impl<T> DivAssign<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Div<ModInt<T>, Output = ModInt<T>>, 
[src]

impl<T> DivAssign<T> for ModInt<T> where
    T: Copy,
    ModInt<T>: Div<T, Output = ModInt<T>>, 
[src]

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

type Output = Self

The resulting type after applying the * operator.

impl<T> Mul<T> for ModInt<T> where
    T: MulAssign + RemAssign + Copy + PartialOrd
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> MulAssign<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Mul<ModInt<T>, Output = ModInt<T>>, 
[src]

impl<T> MulAssign<T> for ModInt<T> where
    T: Copy,
    ModInt<T>: Mul<T, Output = ModInt<T>>, 
[src]

impl<T> Sub<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Sub<T, Output = ModInt<T>>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T> Sub<T> for ModInt<T> where
    T: AddAssign + SubAssign + RemAssign + Copy + PartialOrd
[src]

type Output = Self

The resulting type after applying the - operator.

impl<T> SubAssign<ModInt<T>> for ModInt<T> where
    T: Copy,
    ModInt<T>: Sub<ModInt<T>, Output = ModInt<T>>, 
[src]

impl<T> SubAssign<T> for ModInt<T> where
    T: Copy,
    ModInt<T>: Sub<T, Output = ModInt<T>>, 
[src]

Auto Trait Implementations

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

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

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

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,