pub trait Lattice: PartialOrd + Sized {
// Required methods
fn meet_mut(&mut self, other: Self) -> bool;
fn join_mut(&mut self, other: Self) -> bool;
// Provided methods
fn meet(self, other: Self) -> Self { ... }
fn join(self, other: Self) -> Self { ... }
}Expand description
A Lattice is a PartialOrd where each pair of elements has a least upper bound (join) and a greatest lower bound (meet)
Required Methods§
Provided 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.