Skip to main content

BinaryPolynomial

Trait BinaryPolynomial 

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

Source

fn zero() -> Self

Source

fn one() -> Self

Source

fn from_value(val: u64) -> Self

Source

fn value(&self) -> Self::Value

Source

fn add(&self, other: &Self) -> Self

Source

fn mul(&self, other: &Self) -> Self

Source

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.

Implementors§