pub trait ModularCoreOps<Rhs = Self, Modulus = Self> {
    type Output;

    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

Return (self + rhs) % m

Return (self - rhs) % m

Return (self * rhs) % m

Implementations on Foreign Types

Implementors