ClosureUnderOperation

Trait ClosureUnderOperation 

Source
pub trait ClosureUnderOperation<T> {
    // Required methods
    fn verify_closure_add(&self, other: &Self) -> bool
       where Self: AdditiveOperation<T>;
    fn verify_closure_mul(&self, other: &Self) -> bool
       where Self: MultiplicativeOperation<T>;
}

Required Methods§

Source

fn verify_closure_add(&self, other: &Self) -> bool
where Self: AdditiveOperation<T>,

Source

fn verify_closure_mul(&self, other: &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> ClosureUnderOperation<T> for AlgebraicStructure<T>