Trait num_modular::ModularCoreOps
source · 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.