pub struct ModInt { /* private fields */ }
Expand description
modulo
を法として剰余をとる構造体。
Implementations§
Trait Implementations§
Source§impl AddAssign for ModInt
impl AddAssign for ModInt
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl DivAssign for ModInt
impl DivAssign for ModInt
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl MulAssign for ModInt
impl MulAssign for ModInt
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl SubAssign for ModInt
impl SubAssign for ModInt
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ModInt
impl Eq for ModInt
impl StructuralPartialEq 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