[−][src]Struct competitive_programming_rs::math::mod_int::mod_int::ModInt
Implementations
impl<T> ModInt<T> where
T: Copy,
[src]
T: Copy,
impl<T> ModInt<T> where
T: Copy + RemAssign + PartialOrd,
[src]
T: Copy + RemAssign + PartialOrd,
impl<T> ModInt<T> where
T: Copy + Sub<Output = T> + ShrAssign + BitAnd<Output = T> + PartialEq + PartialOrd + Div<Output = T> + RemAssign,
ModInt<T>: MulAssign,
[src]
T: Copy + Sub<Output = T> + ShrAssign + BitAnd<Output = T> + PartialEq + PartialOrd + Div<Output = T> + RemAssign,
ModInt<T>: MulAssign,
Trait Implementations
impl<T> Add<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Add<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Add<T, Output = ModInt<T>>,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: ModInt<T>) -> Self::Output
[src]
impl<T> Add<T> for ModInt<T> where
T: AddAssign + SubAssign + RemAssign + Copy + PartialOrd,
[src]
T: AddAssign + SubAssign + RemAssign + Copy + PartialOrd,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: T) -> Self::Output
[src]
impl<T> AddAssign<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Add<ModInt<T>, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Add<ModInt<T>, Output = ModInt<T>>,
fn add_assign(&mut self, other: ModInt<T>)
[src]
impl<T> AddAssign<T> for ModInt<T> where
T: Copy,
ModInt<T>: Add<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Add<T, Output = ModInt<T>>,
fn add_assign(&mut self, other: T)
[src]
impl<T> Clone for ModInt<T> where
T: Copy,
[src]
T: Copy,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for ModInt<T> where
T: Copy,
[src]
T: Copy,
impl<T> Div<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Div<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Div<T, Output = ModInt<T>>,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: ModInt<T>) -> Self::Output
[src]
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]
T: Copy + Add<Output = T> + Sub<Output = T> + Div<Output = T> + BitAnd<Output = T> + PartialEq + PartialOrd + ShrAssign + RemAssign + MulAssign,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: T) -> Self::Output
[src]
impl<T> DivAssign<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Div<ModInt<T>, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Div<ModInt<T>, Output = ModInt<T>>,
fn div_assign(&mut self, rhs: ModInt<T>)
[src]
impl<T> DivAssign<T> for ModInt<T> where
T: Copy,
ModInt<T>: Div<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Div<T, Output = ModInt<T>>,
fn div_assign(&mut self, rhs: T)
[src]
impl<T> Mul<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Mul<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Mul<T, Output = ModInt<T>>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: ModInt<T>) -> Self::Output
[src]
impl<T> Mul<T> for ModInt<T> where
T: MulAssign + RemAssign + Copy + PartialOrd,
[src]
T: MulAssign + RemAssign + Copy + PartialOrd,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self::Output
[src]
impl<T> MulAssign<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Mul<ModInt<T>, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Mul<ModInt<T>, Output = ModInt<T>>,
fn mul_assign(&mut self, rhs: ModInt<T>)
[src]
impl<T> MulAssign<T> for ModInt<T> where
T: Copy,
ModInt<T>: Mul<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Mul<T, Output = ModInt<T>>,
fn mul_assign(&mut self, rhs: T)
[src]
impl<T> Sub<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Sub<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Sub<T, Output = ModInt<T>>,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: ModInt<T>) -> Self::Output
[src]
impl<T> Sub<T> for ModInt<T> where
T: AddAssign + SubAssign + RemAssign + Copy + PartialOrd,
[src]
T: AddAssign + SubAssign + RemAssign + Copy + PartialOrd,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: T) -> Self::Output
[src]
impl<T> SubAssign<ModInt<T>> for ModInt<T> where
T: Copy,
ModInt<T>: Sub<ModInt<T>, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Sub<ModInt<T>, Output = ModInt<T>>,
fn sub_assign(&mut self, other: ModInt<T>)
[src]
impl<T> SubAssign<T> for ModInt<T> where
T: Copy,
ModInt<T>: Sub<T, Output = ModInt<T>>,
[src]
T: Copy,
ModInt<T>: Sub<T, Output = ModInt<T>>,
fn sub_assign(&mut self, other: T)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ModInt<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ModInt<T> where
T: Send,
T: Send,
impl<T> Sync for ModInt<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ModInt<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for ModInt<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
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.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,