LowerSemilattice

Trait LowerSemilattice 

Source
pub trait LowerSemilattice: PartialOrd {
    // Required method
    fn greatest_lower_bound(&self, other: &Self) -> Self;
}
Expand description

A partial order in which for any two elements there exists a unique greatest lower bound.

Required Methods§

Source

fn greatest_lower_bound(&self, other: &Self) -> Self

Returns the greatest lower bound of self and other, i.e., the unique greatest element in the type which is less than or equal to both self and other.

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.

Implementations on Foreign Types§

Source§

impl LowerSemilattice for i8

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for i16

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for i32

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for i64

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for i128

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for isize

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for u8

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for u16

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for u32

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for u64

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for u128

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl LowerSemilattice for usize

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Source§

impl<const N: usize, T> LowerSemilattice for [T; N]

Source§

fn greatest_lower_bound(&self, other: &Self) -> Self

Implementors§