Trait num_bigint_dig::traits::ModInverse[][src]

pub trait ModInverse<R: Sized>: Sized {
    type Output: Sized;
    fn mod_inverse(self, m: R) -> Option<Self::Output>;
}

Generic trait to implement modular inverse.

Associated Types

Loading content...

Required methods

fn mod_inverse(self, m: R) -> Option<Self::Output>[src]

Function to calculate the modular multiplicative inverse of an integer a modulo m.

TODO: references Returns the modular inverse of self. If none exists it returns None.

Loading content...

Implementors

impl ModInverse<BigInt> for BigUint[src]

impl ModInverse<BigUint> for BigUint[src]

impl<'a> ModInverse<&'a BigInt> for BigInt[src]

type Output = BigInt

impl<'a> ModInverse<&'a BigInt> for BigUint[src]

type Output = BigInt

impl<'a> ModInverse<&'a BigUint> for BigInt[src]

type Output = BigInt

impl<'a> ModInverse<&'a BigUint> for BigUint[src]

type Output = BigInt

impl<'a> ModInverse<BigUint> for &'a BigUint[src]

impl<'a, 'b> ModInverse<&'b BigInt> for &'a BigInt[src]

type Output = BigInt

impl<'a, 'b> ModInverse<&'b BigInt> for &'a BigUint[src]

type Output = BigInt

impl<'a, 'b> ModInverse<&'b BigUint> for &'a BigInt[src]

type Output = BigInt

impl<'a, 'b> ModInverse<&'b BigUint> for &'a BigUint[src]

type Output = BigInt

Loading content...