pub trait FieldElem: Copy + PartialEq {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn add(self, o: Self) -> Self;
fn sub(self, o: Self) -> Self;
fn mul(self, o: Self) -> Self;
fn inv(self) -> Self;
}Expand description
The minimal field interface Berlekamp–Massey needs.
Required Methods§
fn zero() -> Self
fn one() -> Self
fn add(self, o: Self) -> Self
fn sub(self, o: Self) -> Self
fn mul(self, o: 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.