pub struct ConstModInt<P: PrimeMod>(/* private fields */);Expand description
奇素数Pで剰余をとる構造体。
Implementations§
Trait Implementations§
Source§impl<P: PrimeMod> Add for ConstModInt<P>
impl<P: PrimeMod> Add for ConstModInt<P>
Source§impl<P: PrimeMod> AddAssign for ConstModInt<P>
impl<P: PrimeMod> AddAssign for ConstModInt<P>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<P: Clone + PrimeMod> Clone for ConstModInt<P>
impl<P: Clone + PrimeMod> Clone for ConstModInt<P>
Source§fn clone(&self) -> ConstModInt<P>
fn clone(&self) -> ConstModInt<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: PrimeMod> Debug for ConstModInt<P>
impl<P: PrimeMod> Debug for ConstModInt<P>
Source§impl<P: Default + PrimeMod> Default for ConstModInt<P>
impl<P: Default + PrimeMod> Default for ConstModInt<P>
Source§fn default() -> ConstModInt<P>
fn default() -> ConstModInt<P>
Returns the “default value” for a type. Read more
Source§impl<P: PrimeMod> Display for ConstModInt<P>
impl<P: PrimeMod> Display for ConstModInt<P>
Source§impl<P: PrimeMod> Div for ConstModInt<P>
impl<P: PrimeMod> Div for ConstModInt<P>
Source§impl<P: PrimeMod> DivAssign for ConstModInt<P>
impl<P: PrimeMod> DivAssign for ConstModInt<P>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl<P: PrimeMod> From<ConstModInt<P>> for u32
impl<P: PrimeMod> From<ConstModInt<P>> for u32
Source§fn from(value: ConstModInt<P>) -> Self
fn from(value: ConstModInt<P>) -> Self
Converts to this type from the input type.
Source§impl<P: PrimeMod> Mul for ConstModInt<P>
impl<P: PrimeMod> Mul for ConstModInt<P>
Source§impl<P: PrimeMod> MulAssign for ConstModInt<P>
impl<P: PrimeMod> MulAssign for ConstModInt<P>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<P: PrimeMod> Neg for ConstModInt<P>
impl<P: PrimeMod> Neg for ConstModInt<P>
Source§impl<P: PrimeMod> Sub for ConstModInt<P>
impl<P: PrimeMod> Sub for ConstModInt<P>
Source§impl<P: PrimeMod> SubAssign for ConstModInt<P>
impl<P: PrimeMod> SubAssign for ConstModInt<P>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreSource§impl<P: PrimeMod> ZZElem for ConstModInt<P>
impl<P: PrimeMod> ZZElem for ConstModInt<P>
impl<P: Copy + PrimeMod> Copy for ConstModInt<P>
impl<P: Eq + PrimeMod> Eq for ConstModInt<P>
impl<P: PrimeMod> StructuralPartialEq for ConstModInt<P>
Auto Trait Implementations§
impl<P> Freeze for ConstModInt<P>
impl<P> RefUnwindSafe for ConstModInt<P>where
P: RefUnwindSafe,
impl<P> Send for ConstModInt<P>where
P: Send,
impl<P> Sync for ConstModInt<P>where
P: Sync,
impl<P> Unpin for ConstModInt<P>where
P: Unpin,
impl<P> UnwindSafe for ConstModInt<P>where
P: 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