Struct nekolib::math::DynamicModInt

source ·
pub struct DynamicModInt<I> { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl<I: DynamicModIntId> Add<&DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the + operation. Read more
source§

impl<I: DynamicModIntId> Add<&DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the + operator.
source§

fn add(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the + operation. Read more
source§

impl<I: DynamicModIntId> Add<DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the + operator.
source§

fn add(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the + operation. Read more
source§

impl<I: DynamicModIntId> Add<DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the + operator.
source§

fn add(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the + operation. Read more
source§

impl<I: DynamicModIntId> AddAssign<&DynamicModInt<I>> for DynamicModInt<I>

source§

fn add_assign(&mut self, rhs: &DynamicModInt<I>)

Performs the += operation. Read more
source§

impl<I: DynamicModIntId> AddAssign<DynamicModInt<I>> for DynamicModInt<I>

source§

fn add_assign(&mut self, rhs: DynamicModInt<I>)

Performs the += operation. Read more
source§

impl<I: Clone> Clone for DynamicModInt<I>

source§

fn clone(&self) -> DynamicModInt<I>

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<I: DynamicModIntId> Debug for DynamicModInt<I>

source§

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

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

impl<I: DynamicModIntId> Default for DynamicModInt<I>

source§

fn default() -> Self

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

impl<I: DynamicModIntId> Display for DynamicModInt<I>

source§

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

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

impl<I: DynamicModIntId> Div<&DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the / operation. Read more
source§

impl<I: DynamicModIntId> Div<&DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the / operator.
source§

fn div(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the / operation. Read more
source§

impl<I: DynamicModIntId> Div<DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the / operator.
source§

fn div(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the / operation. Read more
source§

impl<I: DynamicModIntId> Div<DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the / operator.
source§

fn div(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the / operation. Read more
source§

impl<I: DynamicModIntId> DivAssign<&DynamicModInt<I>> for DynamicModInt<I>

source§

fn div_assign(&mut self, rhs: &DynamicModInt<I>)

Performs the /= operation. Read more
source§

impl<I: DynamicModIntId> DivAssign<DynamicModInt<I>> for DynamicModInt<I>

source§

fn div_assign(&mut self, rhs: DynamicModInt<I>)

Performs the /= operation. Read more
source§

impl<J: RemEuclidU32, I: DynamicModIntId> From<J> for DynamicModInt<I>

source§

fn from(x: J) -> Self

Converts to this type from the input type.
source§

impl<I: DynamicModIntId> Hash for DynamicModInt<I>

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<I: DynamicModIntId> ModIntBase for DynamicModInt<I>

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<I: DynamicModIntId> Mul<&DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the * operation. Read more
source§

impl<I: DynamicModIntId> Mul<&DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the * operation. Read more
source§

impl<I: DynamicModIntId> Mul<DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the * operation. Read more
source§

impl<I: DynamicModIntId> Mul<DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the * operation. Read more
source§

impl<I: DynamicModIntId> MulAssign<&DynamicModInt<I>> for DynamicModInt<I>

source§

fn mul_assign(&mut self, rhs: &DynamicModInt<I>)

Performs the *= operation. Read more
source§

impl<I: DynamicModIntId> MulAssign<DynamicModInt<I>> for DynamicModInt<I>

source§

fn mul_assign(&mut self, rhs: DynamicModInt<I>)

Performs the *= operation. Read more
source§

impl<I: DynamicModIntId> Neg for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self

Performs the unary - operation. Read more
source§

impl<I: PartialEq> PartialEq<DynamicModInt<I>> for DynamicModInt<I>

source§

fn eq(&self, other: &DynamicModInt<I>) -> 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, I: DynamicModIntId> Product<&'a DynamicModInt<I>> for DynamicModInt<I>

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<I: DynamicModIntId> Product<DynamicModInt<I>> for DynamicModInt<I>

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<I: DynamicModIntId> Sub<&DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the - operation. Read more
source§

impl<I: DynamicModIntId> Sub<&DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: &DynamicModInt<I>) -> DynamicModInt<I>

Performs the - operation. Read more
source§

impl<I: DynamicModIntId> Sub<DynamicModInt<I>> for &DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the - operation. Read more
source§

impl<I: DynamicModIntId> Sub<DynamicModInt<I>> for DynamicModInt<I>

§

type Output = DynamicModInt<I>

The resulting type after applying the - operator.
source§

fn sub(self, rhs: DynamicModInt<I>) -> DynamicModInt<I>

Performs the - operation. Read more
source§

impl<I: DynamicModIntId> SubAssign<&DynamicModInt<I>> for DynamicModInt<I>

source§

fn sub_assign(&mut self, rhs: &DynamicModInt<I>)

Performs the -= operation. Read more
source§

impl<I: DynamicModIntId> SubAssign<DynamicModInt<I>> for DynamicModInt<I>

source§

fn sub_assign(&mut self, rhs: DynamicModInt<I>)

Performs the -= operation. Read more
source§

impl<'a, I: DynamicModIntId> Sum<&'a DynamicModInt<I>> for DynamicModInt<I>

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<I: DynamicModIntId> Sum<DynamicModInt<I>> for DynamicModInt<I>

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<I: Copy> Copy for DynamicModInt<I>

source§

impl<I: Eq> Eq for DynamicModInt<I>

source§

impl<I> StructuralEq for DynamicModInt<I>

source§

impl<I> StructuralPartialEq for DynamicModInt<I>

Auto Trait Implementations§

§

impl<I> RefUnwindSafe for DynamicModInt<I>

§

impl<I> Send for DynamicModInt<I>

§

impl<I> Sync for DynamicModInt<I>

§

impl<I> Unpin for DynamicModInt<I>

§

impl<I> UnwindSafe for DynamicModInt<I>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V