num_modular

Trait ModularPow

Source
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<&u8, &u8> for &u8

Source§

type Output = u8

Source§

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

Source§

impl ModularPow<&u8, &u8> for u8

Source§

type Output = u8

Source§

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

Source§

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

Source§

type Output = u16

Source§

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

Source§

impl ModularPow<&u16, &u16> for u16

Source§

type Output = u16

Source§

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

Source§

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

Source§

type Output = u32

Source§

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

Source§

impl ModularPow<&u32, &u32> for u32

Source§

type Output = u32

Source§

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

Source§

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

Source§

type Output = u64

Source§

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

Source§

impl ModularPow<&u64, &u64> for u64

Source§

type Output = u64

Source§

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

Source§

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

Source§

type Output = u128

Source§

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

Source§

impl ModularPow<&u128, &u128> for u128

Source§

type Output = u128

Source§

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

Source§

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

Source§

type Output = usize

Source§

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

Source§

impl ModularPow<&usize, &usize> for usize

Source§

type Output = usize

Source§

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

Source§

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

Source§

impl ModularPow<&BigUint, &BigUint> for BigUint

Source§

impl ModularPow<u8, &u8> for &u8

Source§

type Output = u8

Source§

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

Source§

impl ModularPow<u8, &u8> for u8

Source§

type Output = u8

Source§

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

Source§

impl ModularPow<u16, &u16> for &u16

Source§

type Output = u16

Source§

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

Source§

impl ModularPow<u16, &u16> for u16

Source§

type Output = u16

Source§

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

Source§

impl ModularPow<u32, &u32> for &u32

Source§

type Output = u32

Source§

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

Source§

impl ModularPow<u32, &u32> for u32

Source§

type Output = u32

Source§

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

Source§

impl ModularPow<u64, &u64> for &u64

Source§

type Output = u64

Source§

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

Source§

impl ModularPow<u64, &u64> for u64

Source§

type Output = u64

Source§

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

Source§

impl ModularPow<u128, &u128> for &u128

Source§

type Output = u128

Source§

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

Source§

impl ModularPow<u128, &u128> for u128

Source§

type Output = u128

Source§

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

Source§

impl ModularPow<usize, &usize> for &usize

Source§

type Output = usize

Source§

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

Source§

impl ModularPow<usize, &usize> for usize

Source§

type Output = usize

Source§

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

Source§

impl ModularPow<BigUint, &BigUint> for &BigUint

Source§

impl ModularPow<BigUint, &BigUint> for BigUint

Implementors§