Trait alga::general::Semigroup [] [src]

pub trait Semigroup<O: Op>: Magma<O> {
    fn prop_is_associative(args: (Self, Self, Self)) -> bool where Self: ApproxEq { ... }
}

An associative magma.

∀ a, b, c ∈ Self, (a ∘ b) ∘ c = a ∘ (b ∘ c)       

Provided Methods

Returns true if associativity holds for the given arguments.

Implementors