Skip to main content

FieldElem

Trait FieldElem 

Source
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§

Source

fn zero() -> Self

Source

fn one() -> Self

Source

fn add(self, o: Self) -> Self

Source

fn sub(self, o: Self) -> Self

Source

fn mul(self, o: Self) -> Self

Source

fn inv(self) -> Self

Multiplicative inverse; only called on nonzero elements.

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.

Implementors§