pub trait ModularAbs<Modulus> {
    // Required method
    fn absm(self, m: &Modulus) -> Modulus;
}
Expand description

Provides a utility function to convert signed integers into unsigned modular form

Required Methods§

source

fn absm(self, m: &Modulus) -> Modulus

Return self % m, but accepting signed integers

Implementations on Foreign Types§

source§

impl ModularAbs<usize> for isize

source§

fn absm(self, m: &usize) -> usize

source§

impl ModularAbs<u16> for i16

source§

fn absm(self, m: &u16) -> u16

source§

impl ModularAbs<u128> for i128

source§

fn absm(self, m: &u128) -> u128

source§

impl ModularAbs<u8> for i8

source§

fn absm(self, m: &u8) -> u8

source§

impl ModularAbs<u32> for i32

source§

fn absm(self, m: &u32) -> u32

source§

impl ModularAbs<BigUint> for BigInt

source§

fn absm(self, m: &BigUint) -> BigUint

source§

impl ModularAbs<u64> for i64

source§

fn absm(self, m: &u64) -> u64

Implementors§