pub trait Semilattice {
type Val: Clone;
// Required methods
fn id() -> Self::Val;
fn op(x: &Self::Val, y: &Self::Val) -> Self::Val;
}Expand description
半束
- 単位元をもち,可環かつ冪等な2項演算
Required Associated Types§
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.