Type Alias nekolib::math::ModInt1000000007
source · pub type ModInt1000000007 = StaticModInt<Mod1000000007>;
Aliased Type§
struct ModInt1000000007 { /* private fields */ }
Trait Implementations§
source§impl<M: Modulus> Add<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Add<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
+
operator.source§fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
+
operation. Read moresource§impl<M: Modulus> Add<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Add<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
+
operator.source§fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
+
operation. Read moresource§impl<M: Modulus> AddAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> AddAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn add_assign(&mut self, rhs: &StaticModInt<M>)
fn add_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
+=
operation. Read moresource§impl<M: Modulus> AddAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> AddAssign<StaticModInt<M>> for StaticModInt<M>
source§fn add_assign(&mut self, rhs: StaticModInt<M>)
fn add_assign(&mut self, rhs: StaticModInt<M>)
Performs the
+=
operation. Read moresource§impl<M: Clone> Clone for StaticModInt<M>
impl<M: Clone> Clone for StaticModInt<M>
source§fn clone(&self) -> StaticModInt<M>
fn clone(&self) -> StaticModInt<M>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M: Modulus> Debug for StaticModInt<M>
impl<M: Modulus> Debug for StaticModInt<M>
source§impl<M: Modulus> Default for StaticModInt<M>
impl<M: Modulus> Default for StaticModInt<M>
source§impl<M: Modulus> Display for StaticModInt<M>
impl<M: Modulus> Display for StaticModInt<M>
source§impl<M: Modulus> Div<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Div<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
/
operator.source§fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
/
operation. Read moresource§impl<M: Modulus> Div<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Div<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
/
operator.source§fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
/
operation. Read moresource§impl<M: Modulus> DivAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> DivAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn div_assign(&mut self, rhs: &StaticModInt<M>)
fn div_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
/=
operation. Read moresource§impl<M: Modulus> DivAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> DivAssign<StaticModInt<M>> for StaticModInt<M>
source§fn div_assign(&mut self, rhs: StaticModInt<M>)
fn div_assign(&mut self, rhs: StaticModInt<M>)
Performs the
/=
operation. Read moresource§impl<I: RemEuclidU32, M: Modulus> From<I> for StaticModInt<M>
impl<I: RemEuclidU32, M: Modulus> From<I> for StaticModInt<M>
source§impl<M: Modulus> Hash for StaticModInt<M>
impl<M: Modulus> Hash for StaticModInt<M>
source§impl<M: Modulus> ModIntBase for StaticModInt<M>
impl<M: Modulus> ModIntBase for StaticModInt<M>
source§impl<M: Modulus> Mul<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Mul<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
*
operation. Read moresource§impl<M: Modulus> Mul<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Mul<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
*
operator.source§fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
*
operation. Read moresource§impl<M: Modulus> MulAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> MulAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn mul_assign(&mut self, rhs: &StaticModInt<M>)
fn mul_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
*=
operation. Read moresource§impl<M: Modulus> MulAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> MulAssign<StaticModInt<M>> for StaticModInt<M>
source§fn mul_assign(&mut self, rhs: StaticModInt<M>)
fn mul_assign(&mut self, rhs: StaticModInt<M>)
Performs the
*=
operation. Read moresource§impl<M: Modulus> Neg for StaticModInt<M>
impl<M: Modulus> Neg for StaticModInt<M>
source§impl<M: PartialEq> PartialEq<StaticModInt<M>> for StaticModInt<M>
impl<M: PartialEq> PartialEq<StaticModInt<M>> for StaticModInt<M>
source§fn eq(&self, other: &StaticModInt<M>) -> bool
fn eq(&self, other: &StaticModInt<M>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a, M: Modulus> Product<&'a StaticModInt<M>> for StaticModInt<M>
impl<'a, M: Modulus> Product<&'a StaticModInt<M>> for StaticModInt<M>
source§impl<M: Modulus> Product<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Product<StaticModInt<M>> for StaticModInt<M>
source§impl<M: Modulus> Sub<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Sub<&StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>
Performs the
-
operation. Read moresource§impl<M: Modulus> Sub<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> Sub<StaticModInt<M>> for StaticModInt<M>
§type Output = StaticModInt<M>
type Output = StaticModInt<M>
The resulting type after applying the
-
operator.source§fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>
fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>
Performs the
-
operation. Read moresource§impl<M: Modulus> SubAssign<&StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> SubAssign<&StaticModInt<M>> for StaticModInt<M>
source§fn sub_assign(&mut self, rhs: &StaticModInt<M>)
fn sub_assign(&mut self, rhs: &StaticModInt<M>)
Performs the
-=
operation. Read moresource§impl<M: Modulus> SubAssign<StaticModInt<M>> for StaticModInt<M>
impl<M: Modulus> SubAssign<StaticModInt<M>> for StaticModInt<M>
source§fn sub_assign(&mut self, rhs: StaticModInt<M>)
fn sub_assign(&mut self, rhs: StaticModInt<M>)
Performs the
-=
operation. Read more