pub trait ModularCoreOps<Rhs = Self, Modulus = Self> {
type Output;
// Required methods
fn addm(self, rhs: Rhs, m: Modulus) -> Self::Output;
fn subm(self, rhs: Rhs, m: Modulus) -> Self::Output;
fn mulm(self, rhs: Rhs, m: Modulus) -> Self::Output;
}Expand description
Core modular arithmetic operations.
Note that all functions will panic if the modulus is zero.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".