Skip to main content

DynamicModInt

Struct DynamicModInt 

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

Implementations§

Trait Implementations§

Source§

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

Source§

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>

Source§

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>

Source§

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

Source§

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 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 duplicate 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>

Source§

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>

Source§

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>

Source§

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

Source§

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 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>

Source§

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>

Source§

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>

Source§

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

Source§

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 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>

Source§

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

Source§

fn eq(&self, other: &DynamicModInt<I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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) -> Self
where S: Iterator<Item = &'a Self>,

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

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

Source§

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

Takes an iterator and generates Self from the elements by multiplying the items.
Source§

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

Source§

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>

Source§

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>

Source§

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

Source§

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 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) -> Self
where S: Iterator<Item = &'a Self>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

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

Source§

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

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> StructuralPartialEq for DynamicModInt<I>

Auto Trait Implementations§

§

impl<I> Freeze for DynamicModInt<I>

§

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> UnsafeUnpin for DynamicModInt<I>

§

impl<I> UnwindSafe for DynamicModInt<I>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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

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

Source§

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 T
where U: TryFrom<T>,

Source§

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 T
where V: MultiLane<T>,

§

fn vzip(self) -> V