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