pub trait ModularPow<Exp = Self, Modulus = Self> {
    type Output;
    fn powm(self, exp: Exp, m: Modulus) -> Self::Output;
}
Expand description

Modular power functions

Associated Types

Required methods

Return (self ^ exp) % m

Implementations on Foreign Types

Implementors