Trait MagmaLaws
un_algebra::magma::magma
pub trait MagmaLaws: Magma { fn closure(&self, _x: &Self) -> bool { ... } }
Laws of magmas. The closure axiom defined here is guaranteed by Rust's type system and is implemented only for completeness.
fn closure(&self, _x: &Self) -> bool
The closure axiom.
impl<M: Magma> MagmaLaws for M
Blanket implementation of magma laws for magma implementations.