pub trait Monoid: Semigroup {
// Required method
fn empty() -> Self;
}
Expand description
A Monoid is a Semigroup that has an empty/ zero value
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.