pub trait BinaryPolynomial:
Sized
+ Copy
+ Clone
+ Default
+ PartialEq
+ Eq
+ Debug {
type Value: Copy + Clone + Debug;
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn from_value(val: u64) -> Self;
fn value(&self) -> Self::Value;
fn add(&self, other: &Self) -> Self;
fn mul(&self, other: &Self) -> Self;
fn div_rem(&self, other: &Self) -> (Self, Self);
}Required Associated Types§
Required Methods§
fn zero() -> Self
fn one() -> Self
fn from_value(val: u64) -> Self
fn value(&self) -> Self::Value
fn add(&self, other: &Self) -> Self
fn mul(&self, other: &Self) -> Self
fn div_rem(&self, other: &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.