[go: up one dir, main page]

Trait alga::general::AbstractSemigroup [] [src]

pub trait AbstractSemigroup<O: Operator>: PartialEq + AbstractMagma<O> {
    fn prop_is_associative_approx(args: (Self, Self, Self)) -> bool where Self: ApproxEq { ... }
    fn prop_is_associative(args: (Self, Self, Self)) -> bool where Self: Eq { ... }
}

An associative magma.

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

Provided Methods

Returns true if associativity holds for the given arguments. Approximate equality is used for verifications.

Returns true if associativity holds for the given arguments.

Implementors