pub trait Ring: Additive + Multiplicative {
// Required method
fn one() -> Self;
// Provided method
fn exp(&self, bits_le: &[u64]) -> Self { ... }
}Expand description
An instance of a mathematical Ring.
This combines Additive and Multiplicative, and introduces a
neutral element for multiplication, Ring::one.
Required Methods§
Provided Methods§
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.