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

pub struct ModInt<T: Copy + Clone>(pub T);

Methods

impl ModInt<usize>[src]

pub fn pow(self, e: usize) -> ModInt<usize>[src]

Trait Implementations

impl Add<ModInt<usize>> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the + operator.

impl Add<usize> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the + operator.

impl AddAssign<ModInt<usize>> for ModInt<usize>[src]

impl AddAssign<usize> for ModInt<usize>[src]

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

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

impl Div<ModInt<usize>> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the / operator.

impl Div<usize> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the / operator.

impl DivAssign<ModInt<usize>> for ModInt<usize>[src]

impl DivAssign<usize> for ModInt<usize>[src]

impl Mul<ModInt<usize>> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the * operator.

impl Mul<usize> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the * operator.

impl MulAssign<ModInt<usize>> for ModInt<usize>[src]

impl MulAssign<usize> for ModInt<usize>[src]

impl Sub<ModInt<usize>> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the - operator.

impl Sub<usize> for ModInt<usize>[src]

type Output = ModInt<usize>

The resulting type after applying the - operator.

impl SubAssign<ModInt<usize>> for ModInt<usize>[src]

impl SubAssign<usize> for ModInt<usize>[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.