pub trait ModularPow<Exp = Self, Modulus = Self> {
    type Output;

    // Required method
    fn powm(self, exp: Exp, m: Modulus) -> Self::Output;
}
Expand description

Modular power functions

Required Associated Types§

Required Methods§

source

fn powm(self, exp: Exp, m: Modulus) -> Self::Output

Return (self ^ exp) % m

Implementations on Foreign Types§

source§

impl ModularPow<u64, &u64> for &u64

§

type Output = u64

source§

fn powm(self, exp: u64, m: &u64) -> u64

source§

impl ModularPow<&BigUint, &BigUint> for BigUint

§

type Output = BigUint

source§

fn powm(self, exp: &BigUint, m: &BigUint) -> BigUint

source§

impl ModularPow<&u16, &u16> for &u16

§

type Output = u16

source§

fn powm(self, exp: &u16, m: &u16) -> u16

source§

impl ModularPow<&BigUint, &BigUint> for &BigUint

§

type Output = BigUint

source§

fn powm(self, exp: &BigUint, m: &BigUint) -> BigUint

source§

impl ModularPow<&u128, &u128> for u128

§

type Output = u128

source§

fn powm(self, exp: &u128, m: &u128) -> u128

source§

impl ModularPow<&u128, &u128> for &u128

§

type Output = u128

source§

fn powm(self, exp: &u128, m: &u128) -> u128

source§

impl ModularPow<&u64, &u64> for u64

§

type Output = u64

source§

fn powm(self, exp: &u64, m: &u64) -> u64

source§

impl ModularPow<u16, &u16> for u16

§

type Output = u16

source§

fn powm(self, exp: u16, m: &u16) -> u16

source§

impl ModularPow<&usize, &usize> for &usize

§

type Output = usize

source§

fn powm(self, exp: &usize, m: &usize) -> usize

source§

impl ModularPow<u32, &u32> for u32

§

type Output = u32

source§

fn powm(self, exp: u32, m: &u32) -> u32

source§

impl ModularPow<&u8, &u8> for u8

§

type Output = u8

source§

fn powm(self, exp: &u8, m: &u8) -> u8

source§

impl ModularPow<u128, &u128> for &u128

§

type Output = u128

source§

fn powm(self, exp: u128, m: &u128) -> u128

source§

impl ModularPow<&u32, &u32> for &u32

§

type Output = u32

source§

fn powm(self, exp: &u32, m: &u32) -> u32

source§

impl ModularPow<BigUint, &BigUint> for BigUint

§

type Output = BigUint

source§

fn powm(self, exp: BigUint, m: &BigUint) -> BigUint

source§

impl ModularPow<u64, &u64> for u64

§

type Output = u64

source§

fn powm(self, exp: u64, m: &u64) -> u64

source§

impl ModularPow<u8, &u8> for &u8

§

type Output = u8

source§

fn powm(self, exp: u8, m: &u8) -> u8

source§

impl ModularPow<&usize, &usize> for usize

§

type Output = usize

source§

fn powm(self, exp: &usize, m: &usize) -> usize

source§

impl ModularPow<u16, &u16> for &u16

§

type Output = u16

source§

fn powm(self, exp: u16, m: &u16) -> u16

source§

impl ModularPow<&u64, &u64> for &u64

§

type Output = u64

source§

fn powm(self, exp: &u64, m: &u64) -> u64

source§

impl ModularPow<usize, &usize> for &usize

§

type Output = usize

source§

fn powm(self, exp: usize, m: &usize) -> usize

source§

impl ModularPow<&u16, &u16> for u16

§

type Output = u16

source§

fn powm(self, exp: &u16, m: &u16) -> u16

source§

impl ModularPow<&u8, &u8> for &u8

§

type Output = u8

source§

fn powm(self, exp: &u8, m: &u8) -> u8

source§

impl ModularPow<u128, &u128> for u128

§

type Output = u128

source§

fn powm(self, exp: u128, m: &u128) -> u128

source§

impl ModularPow<usize, &usize> for usize

§

type Output = usize

source§

fn powm(self, exp: usize, m: &usize) -> usize

source§

impl ModularPow<u8, &u8> for u8

§

type Output = u8

source§

fn powm(self, exp: u8, m: &u8) -> u8

source§

impl ModularPow<&u32, &u32> for u32

§

type Output = u32

source§

fn powm(self, exp: &u32, m: &u32) -> u32

source§

impl ModularPow<BigUint, &BigUint> for &BigUint

§

type Output = BigUint

source§

fn powm(self, exp: BigUint, m: &BigUint) -> BigUint

source§

impl ModularPow<u32, &u32> for &u32

§

type Output = u32

source§

fn powm(self, exp: u32, m: &u32) -> u32

Implementors§