pub struct Modint<const MOD: usize>(pub usize);Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
Source§impl<const MOD: usize> AddAssign<usize> for Modint<MOD>
impl<const MOD: usize> AddAssign<usize> for Modint<MOD>
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+= operation. Read moreSource§impl<const MOD: usize> AddAssign for Modint<MOD>
impl<const MOD: usize> AddAssign for Modint<MOD>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<const MOD: usize> DivAssign<usize> for Modint<MOD>
impl<const MOD: usize> DivAssign<usize> for Modint<MOD>
Source§fn div_assign(&mut self, rhs: usize)
fn div_assign(&mut self, rhs: usize)
Performs the
/= operation. Read moreSource§impl<const MOD: usize> DivAssign for Modint<MOD>
impl<const MOD: usize> DivAssign for Modint<MOD>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl<const MOD: usize> MulAssign<usize> for Modint<MOD>
impl<const MOD: usize> MulAssign<usize> for Modint<MOD>
Source§fn mul_assign(&mut self, rhs: usize)
fn mul_assign(&mut self, rhs: usize)
Performs the
*= operation. Read moreSource§impl<const MOD: usize> MulAssign for Modint<MOD>
impl<const MOD: usize> MulAssign for Modint<MOD>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<const MOD: usize> One for Modint<MOD>
impl<const MOD: usize> One for Modint<MOD>
Source§impl<const MOD: usize> SubAssign<usize> for Modint<MOD>
impl<const MOD: usize> SubAssign<usize> for Modint<MOD>
Source§fn sub_assign(&mut self, rhs: usize)
fn sub_assign(&mut self, rhs: usize)
Performs the
-= operation. Read moreSource§impl<const MOD: usize> SubAssign for Modint<MOD>
impl<const MOD: usize> SubAssign for Modint<MOD>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl<const MOD: usize> Copy for Modint<MOD>
impl<const MOD: usize> Eq for Modint<MOD>
impl<const MOD: usize> StructuralPartialEq for Modint<MOD>
Auto Trait Implementations§
impl<const MOD: usize> Freeze for Modint<MOD>
impl<const MOD: usize> RefUnwindSafe for Modint<MOD>
impl<const MOD: usize> Send for Modint<MOD>
impl<const MOD: usize> Sync for Modint<MOD>
impl<const MOD: usize> Unpin for Modint<MOD>
impl<const MOD: usize> UnwindSafe for Modint<MOD>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more