pub struct ModInt(_);
Implementations
Trait Implementations
sourceimpl<T: ToInternalNum> Add<T> for ModInt
impl<T: ToInternalNum> Add<T> for ModInt
sourceimpl<T: ToInternalNum> AddAssign<T> for ModInt
impl<T: ToInternalNum> AddAssign<T> for ModInt
sourcefn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the +=
operation. Read more
sourceimpl<T: ToInternalNum> Div<T> for ModInt
impl<T: ToInternalNum> Div<T> for ModInt
sourceimpl<T: ToInternalNum> DivAssign<T> for ModInt
impl<T: ToInternalNum> DivAssign<T> for ModInt
sourcefn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the /=
operation. Read more
sourceimpl<T: ToInternalNum> Mul<T> for ModInt
impl<T: ToInternalNum> Mul<T> for ModInt
sourceimpl<T: ToInternalNum> MulAssign<T> for ModInt
impl<T: ToInternalNum> MulAssign<T> for ModInt
sourcefn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the *=
operation. Read more
sourceimpl<T: ToInternalNum> Sub<T> for ModInt
impl<T: ToInternalNum> Sub<T> for ModInt
sourceimpl<T: ToInternalNum> SubAssign<T> for ModInt
impl<T: ToInternalNum> SubAssign<T> for ModInt
sourcefn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the -=
operation. Read more
sourceimpl ToInternalNum for ModInt
impl ToInternalNum for ModInt
fn to_internal_num(&self) -> i64
impl Copy for ModInt
Auto Trait Implementations
impl RefUnwindSafe for ModInt
impl Send for ModInt
impl Sync for ModInt
impl Unpin for ModInt
impl UnwindSafe for ModInt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more