CommutativeAlgebraRule

Trait CommutativeAlgebraRule 

Source
pub trait CommutativeAlgebraRule<R, T>: AlgebraRule<R, T> { }
Expand description

An AlgebraRule that is order independent

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<R, T: Add<Output = T> + AddCommutative> CommutativeAlgebraRule<R, T> for AddRule

Source§

impl<R, T: Mul<Output = T> + MulCommutative> CommutativeAlgebraRule<R, T> for MulRule