pub trait Barrettable:
Sized
+ Copy
+ PartialOrd
+ Zero
+ One
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self> {
// Required methods
fn inv_mod_approx(m: Self) -> Self;
fn div_approx(self, im: Self) -> Self;
// Provided method
fn barrett_reduce(self, m: Self, im: Self) -> (Self, Self) { ... }
}Required Methods§
fn inv_mod_approx(m: Self) -> Self
fn div_approx(self, im: Self) -> Self
Provided Methods§
Sourcefn barrett_reduce(self, m: Self, im: Self) -> (Self, Self)
fn barrett_reduce(self, m: Self, im: Self) -> (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.