Struct competitive_programming_rs::math::mod_int::mod_int::ModInt [−][src]
Implementations
impl ModInt
[src]
pub fn new<T>(v: T) -> Self where
i64: From<T>,
[src]
i64: From<T>,
pub fn internal_pow(&self, mut e: i64) -> Self
[src]
pub fn pow<T>(&self, e: T) -> Self where
i64: From<T>,
[src]
i64: From<T>,
pub fn value(&self) -> i64
[src]
Trait Implementations
impl<T> Add<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
type Output = ModInt
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Self::Output
[src]
impl<T> AddAssign<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
fn add_assign(&mut self, rhs: T)
[src]
impl Clone for ModInt
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ModInt
[src]
impl<T> Div<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> DivAssign<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
fn div_assign(&mut self, rhs: T)
[src]
impl<T> Mul<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> MulAssign<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T> Sub<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Self::Output
[src]
impl<T> SubAssign<T> for ModInt where
i64: From<T>,
[src]
i64: From<T>,
fn sub_assign(&mut self, rhs: T)
[src]
Auto Trait Implementations
impl RefUnwindSafe for ModInt
[src]
impl Send for ModInt
[src]
impl Sync for ModInt
[src]
impl Unpin for ModInt
[src]
impl UnwindSafe for ModInt
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,