Type Alias nekolib::math::modint::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>

§

type Output = StaticModInt<M>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &StaticModInt<M>) -> StaticModInt<M>

Performs the + operation. Read more
source§

impl<M: Modulus> Add<StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the + operator.
source§

fn add(self, rhs: StaticModInt<M>) -> StaticModInt<M>

Performs the + operation. Read more
source§

impl<M: Modulus> AddAssign<&StaticModInt<M>> for StaticModInt<M>

source§

fn add_assign(&mut self, rhs: &StaticModInt<M>)

Performs the += operation. Read more
source§

impl<M: Modulus> AddAssign<StaticModInt<M>> for StaticModInt<M>

source§

fn add_assign(&mut self, rhs: StaticModInt<M>)

Performs the += operation. Read more
source§

impl<M: Clone> Clone for StaticModInt<M>

source§

fn clone(&self) -> StaticModInt<M>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<M: Modulus> Debug for StaticModInt<M>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<M: Modulus> Default for StaticModInt<M>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<M: Modulus> Display for StaticModInt<M>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<M: Modulus> Div<&StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &StaticModInt<M>) -> StaticModInt<M>

Performs the / operation. Read more
source§

impl<M: Modulus> Div<StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the / operator.
source§

fn div(self, rhs: StaticModInt<M>) -> StaticModInt<M>

Performs the / operation. Read more
source§

impl<M: Modulus> DivAssign<&StaticModInt<M>> for StaticModInt<M>

source§

fn div_assign(&mut self, rhs: &StaticModInt<M>)

Performs the /= operation. Read more
source§

impl<M: Modulus> DivAssign<StaticModInt<M>> for StaticModInt<M>

source§

fn div_assign(&mut self, rhs: StaticModInt<M>)

Performs the /= operation. Read more
source§

impl<I: RemEuclidU32, M: Modulus> From<I> for StaticModInt<M>

source§

fn from(x: I) -> Self

Converts to this type from the input type.
source§

impl<M: Modulus> Hash for StaticModInt<M>

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<M: Modulus> ModIntBase for StaticModInt<M>

source§

fn modulus() -> u32

source§

fn get(self) -> u32

source§

unsafe fn new_unchecked(val: u32) -> Self

source§

fn new(n: impl RemEuclidU32) -> Self

source§

fn recip(self) -> Self

source§

fn checked_recip(self) -> Option<Self>

source§

fn pow(self, iexp: u64) -> Self

source§

impl<M: Modulus> Mul<&StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &StaticModInt<M>) -> StaticModInt<M>

Performs the * operation. Read more
source§

impl<M: Modulus> Mul<StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: StaticModInt<M>) -> StaticModInt<M>

Performs the * operation. Read more
source§

impl<M: Modulus> MulAssign<&StaticModInt<M>> for StaticModInt<M>

source§

fn mul_assign(&mut self, rhs: &StaticModInt<M>)

Performs the *= operation. Read more
source§

impl<M: Modulus> MulAssign<StaticModInt<M>> for StaticModInt<M>

source§

fn mul_assign(&mut self, rhs: StaticModInt<M>)

Performs the *= operation. Read more
source§

impl<M: Modulus> Neg for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl<M: PartialEq> PartialEq<StaticModInt<M>> for StaticModInt<M>

source§

fn eq(&self, other: &StaticModInt<M>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a, M: Modulus> Product<&'a StaticModInt<M>> for StaticModInt<M>

source§

fn product<S>(iter: S) -> Selfwhere S: Iterator<Item = &'a Self>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<M: Modulus> Product<StaticModInt<M>> for StaticModInt<M>

source§

fn product<S>(iter: S) -> Selfwhere S: Iterator<Item = Self>,

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl<M: Modulus> Sub<&StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &StaticModInt<M>) -> StaticModInt<M>

Performs the - operation. Read more
source§

impl<M: Modulus> Sub<StaticModInt<M>> for StaticModInt<M>

§

type Output = StaticModInt<M>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: StaticModInt<M>) -> StaticModInt<M>

Performs the - operation. Read more
source§

impl<M: Modulus> SubAssign<&StaticModInt<M>> for StaticModInt<M>

source§

fn sub_assign(&mut self, rhs: &StaticModInt<M>)

Performs the -= operation. Read more
source§

impl<M: Modulus> SubAssign<StaticModInt<M>> for StaticModInt<M>

source§

fn sub_assign(&mut self, rhs: StaticModInt<M>)

Performs the -= operation. Read more
source§

impl<'a, M: Modulus> Sum<&'a StaticModInt<M>> for StaticModInt<M>

source§

fn sum<S>(iter: S) -> Selfwhere S: Iterator<Item = &'a Self>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<M: Modulus> Sum<StaticModInt<M>> for StaticModInt<M>

source§

fn sum<S>(iter: S) -> Selfwhere S: Iterator<Item = Self>,

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl<M: Copy> Copy for StaticModInt<M>

source§

impl<M: Eq> Eq for StaticModInt<M>

source§

impl<M> StructuralEq for StaticModInt<M>

source§

impl<M> StructuralPartialEq for StaticModInt<M>