pub struct Modint<M>(pub i64, _);Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl<M: Get<T = i64> + Copy, T> AddAssign<T> for Modint<M>where
Self: Add<T, Output = Self>,
impl<M: Get<T = i64> + Copy, T> AddAssign<T> for Modint<M>where
Self: Add<T, Output = Self>,
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreSource§impl<M: Get<T = i64> + Copy, T> DivAssign<T> for Modint<M>where
Self: Div<T, Output = Self>,
impl<M: Get<T = i64> + Copy, T> DivAssign<T> for Modint<M>where
Self: Div<T, Output = Self>,
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moreSource§impl<M: Get<T = i64> + Copy, T> MulAssign<T> for Modint<M>where
Self: Mul<T, Output = Self>,
impl<M: Get<T = i64> + Copy, T> MulAssign<T> for Modint<M>where
Self: Mul<T, Output = Self>,
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moreSource§impl<M: Get<T = i64> + Copy, T> SubAssign<T> for Modint<M>where
Self: Sub<T, Output = Self>,
impl<M: Get<T = i64> + Copy, T> SubAssign<T> for Modint<M>where
Self: Sub<T, Output = Self>,
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreimpl<M: Copy> Copy for Modint<M>
impl<M: Eq> Eq for Modint<M>
impl<M> StructuralPartialEq for Modint<M>
Auto Trait Implementations§
impl<M> Freeze for Modint<M>
impl<M> RefUnwindSafe for Modint<M>where
M: RefUnwindSafe,
impl<M> Send for Modint<M>where
M: Send,
impl<M> Sync for Modint<M>where
M: Sync,
impl<M> Unpin for Modint<M>where
M: Unpin,
impl<M> UnwindSafe for Modint<M>where
M: UnwindSafe,
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