Associativity

Trait Associativity 

Source
pub trait Associativity<T> {
    // Required methods
    fn verify_associativity_add(&self, b: &Self, c: &Self) -> bool
       where Self: AdditiveOperation<T>;
    fn verify_associativity_mul(&self, b: &Self, c: &Self) -> bool
       where Self: MultiplicativeOperation<T>;
}

Required Methods§

Source

fn verify_associativity_add(&self, b: &Self, c: &Self) -> bool
where Self: AdditiveOperation<T>,

Source

fn verify_associativity_mul(&self, b: &Self, c: &Self) -> bool
where Self: MultiplicativeOperation<T>,

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§

Source§

impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Associativity<T> for AlgebraicStructure<T>

Source§

impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Associativity<T> for Field<T>

Source§

impl<T: Add<Output = T> + Mul<Output = T> + Copy + PartialEq> Associativity<T> for Ring<T>