pub struct ModInt(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<T: ToInternalNum> Add<T> for ModInt
impl<T: ToInternalNum> Add<T> for ModInt
Source§impl<T: ToInternalNum> AddAssign<T> for ModInt
impl<T: ToInternalNum> AddAssign<T> for ModInt
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl<T: ToInternalNum> Div<T> for ModInt
impl<T: ToInternalNum> Div<T> for ModInt
Source§impl<T: ToInternalNum> DivAssign<T> for ModInt
impl<T: ToInternalNum> DivAssign<T> for ModInt
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moreSource§impl<T: ToInternalNum> Mul<T> for ModInt
impl<T: ToInternalNum> Mul<T> for ModInt
Source§impl<T: ToInternalNum> MulAssign<T> for ModInt
impl<T: ToInternalNum> MulAssign<T> for ModInt
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moreSource§impl<T: ToInternalNum> Sub<T> for ModInt
impl<T: ToInternalNum> Sub<T> for ModInt
Source§impl<T: ToInternalNum> SubAssign<T> for ModInt
impl<T: ToInternalNum> SubAssign<T> for ModInt
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moreSource§impl ToInternalNum for ModInt
impl ToInternalNum for ModInt
fn to_internal_num(&self) -> i64
impl Copy for ModInt
Auto Trait Implementations§
impl Freeze for ModInt
impl RefUnwindSafe for ModInt
impl Send for ModInt
impl Sync for ModInt
impl Unpin for ModInt
impl UnwindSafe for ModInt
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