Trait alga::general::Monoid [] [src]

pub trait Monoid<O: Op>: Semigroup<O> + Identity<O> {
    fn prop_operating_identity_element_is_noop(a: Self) -> bool where Self: ApproxEq { ... }
}

A semigroup equipped with an identity element.

∃ e ∈ Self, ∀ a ∈ Self, e ∘ a = a ∘ e = a

Provided Methods

Checks whether operating with the identity element is a no-op for the given argument.

Implementors