[−][src]Trait libpuri::Monoid
Trait for associative binary operations with an identity element.
Monoid requires that the following property holds:
ⓘThis example is not tested
// The operation * is associative. (a * b) * c == a * (b * c) // There exists an identity element. a * id == id * a == a
This property cannot be checked by the compiler so the implementer should verify it by themself.