[−][src]Trait alga::general::Lattice
Partially orderable sets where every two elements have a suppremum and infimum.
Provided Methods
fn meet_join(&self, other: &Self) -> (Self, Self)
Returns the infimum and the supremum simultaneously.
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
Return the minimum of self
and other
if they are comparable.
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
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)>
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>
Clamp value
between min
and max
. Returns None
if value
is not comparable to
min
or max
.
Implementations on Foreign Types
impl Lattice for u8
[src]
impl Lattice for u8
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for u16
[src]
impl Lattice for u16
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for u32
[src]
impl Lattice for u32
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for u64
[src]
impl Lattice for u64
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for usize
[src]
impl Lattice for usize
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for i8
[src]
impl Lattice for i8
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for i16
[src]
impl Lattice for i16
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for i32
[src]
impl Lattice for i32
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for i64
[src]
impl Lattice for i64
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for isize
[src]
impl Lattice for isize
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for f32
[src]
impl Lattice for f32
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
impl Lattice for f64
[src]
impl Lattice for f64
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
Implementors
impl<O: Operator> Lattice for Id<O>
[src]
impl<O: Operator> Lattice for Id<O>
fn meet_join(&self, other: &Self) -> (Self, Self)
[src]
fn meet_join(&self, other: &Self) -> (Self, Self)
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_min<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
[src]
fn partial_max<'a>(&'a self, other: &'a Self) -> Option<&'a Self>
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
[src]
fn partial_sort2<'a>(&'a self, other: &'a Self) -> Option<(&'a Self, &'a Self)>
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>
[src]
fn partial_clamp<'a>(&'a self, min: &'a Self, max: &'a Self) -> Option<&'a Self>