pub trait Monoid: Semigroup {
// Required method
fn empty() -> Self;
}
Expand description
A Monoid is a Semigroup that has an empty/ zero value
Required Methods§
Object Safety§
This trait is not object safe.
pub trait Monoid: Semigroup {
// Required method
fn empty() -> Self;
}
A Monoid is a Semigroup that has an empty/ zero value