pub trait Monoid: Semigroup {
// Required method
fn mempty() -> Self;
}
Expand description
Monoid type class extends the Semigroup and adds an empty function for the type
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.