pub trait Modulo {
// Required methods
fn mod_pow(base: &Self, exponent: &Self, modulus: &Self) -> Self;
fn mod_mul(a: &Self, b: &Self, modulus: &Self) -> Self;
fn mod_sub(a: &Self, b: &Self, modulus: &Self) -> Self;
fn mod_add(a: &Self, b: &Self, modulus: &Self) -> Self;
fn mod_inv(a: &Self, modulus: &Self) -> Self;
}
Expand description
Mod operations for BigInt
Required Methods§
fn mod_pow(base: &Self, exponent: &Self, modulus: &Self) -> Self
fn mod_mul(a: &Self, b: &Self, modulus: &Self) -> Self
fn mod_sub(a: &Self, b: &Self, modulus: &Self) -> Self
fn mod_add(a: &Self, b: &Self, modulus: &Self) -> Self
fn mod_inv(a: &Self, modulus: &Self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.