Trait nekolib::math::ModIntBase
source · pub trait ModIntBase: Copy + Eq + Hash + Add<Output = Self> + Sub<Output = Self> + Mul<Output = Self> + Div<Output = Self> + Neg + AddAssign + SubAssign + MulAssign + DivAssign {
// Required methods
fn modulus() -> u32;
fn get(self) -> u32;
unsafe fn new_unchecked(n: u32) -> Self;
// Provided methods
fn new(n: impl RemEuclidU32) -> Self { ... }
fn recip(self) -> Self { ... }
fn checked_recip(self) -> Option<Self> { ... }
fn pow(self, iexp: u64) -> Self { ... }
}