Monoid

Trait Monoid 

Source
pub trait Monoid {
    // Required methods
    fn empty() -> Self;
    fn combine(self, other: Self) -> Self;
}
Expand description

Monoid for deterministic composition

Required Methods§

Source

fn empty() -> Self

Source

fn combine(self, other: Self) -> Self

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.

Implementors§