Trait alga::general::Lattice [−][src]
Partially orderable sets where every two elements have a supremum and infimum.
Provided methods
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
Returns the infimum and the supremum simultaneously.
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
Return the minimum of self
and other
if they are comparable.
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
Return the maximum of self
and other
if they are comparable.
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
Sorts two values in increasing order using a partial ordering.
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
Clamp value
between min
and max
. Returns None
if value
is not comparable to
min
or max
.