pub trait BigNum:
Zero
+ One
+ Clone
+ PartialOrd
+ Debug
+ Rem
+ ShlAssign<usize>
+ for<'a> MulAssign<&'a Self>
+ Sub<u64, Output = Self>
+ Add<u64, Output = Self>
+ From<u64>
+ for<'a> From<&'a [u8]>
+ Shl<usize, Output = Self>
+ Shr<usize, Output = Self>
+ Neg<Output = Self>
+ FromStr
+ for<'a> Div<&'a Self, Output = Self>
+ Eq
+ Hash {
// Required methods
fn probab_prime(&self, iterations: u32) -> bool;
fn setbit(&mut self, offset: usize);
fn mod_powm(&mut self, base: &Self, exponent: &Self, modulus: &Self);
}
Required Methods§
fn probab_prime(&self, iterations: u32) -> bool
fn setbit(&mut self, offset: usize)
fn mod_powm(&mut self, base: &Self, exponent: &Self, modulus: &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.