pub trait Lattice: PartialOrd<Self> {
    fn meet(self, other: Self) -> Self;
fn join(self, other: Self) -> Self; fn meet_mut(&mut self, other: Self) -> bool { ... }
fn join_mut(&mut self, other: Self) -> bool { ... } }
Expand description

A Lattice is a PartialOrd where each pair of elements has a least upper bound (join) and a greates lower bound (meet)

Required methods

the greatest lower bound of two elements. meet(x, y) is the largest value x s.t. z <= x and z <= y

The least upper bound of two elements. join(x, y) is the smallest value z s.t. z >= x and z >= y.

Provided methods

ensures self is the join of self and other

Returns true if self was changed.

ensures self is the meet of self and other.

Returns true if self was changed.

Implementations on Foreign Types

Implementors