UpperSemilattice

Trait UpperSemilattice 

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

A partial order in which for any two elements there exists a unique least upper bound.

Required Methods§

Source

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

Returns the least upper bound of self and other, i.e., the unique least element in the type which is greater 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 UpperSemilattice for i8

Source§

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

Source§

impl UpperSemilattice for i16

Source§

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

Source§

impl UpperSemilattice for i32

Source§

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

Source§

impl UpperSemilattice for i64

Source§

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

Source§

impl UpperSemilattice for i128

Source§

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

Source§

impl UpperSemilattice for isize

Source§

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

Source§

impl UpperSemilattice for u8

Source§

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

Source§

impl UpperSemilattice for u16

Source§

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

Source§

impl UpperSemilattice for u32

Source§

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

Source§

impl UpperSemilattice for u64

Source§

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

Source§

impl UpperSemilattice for u128

Source§

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

Source§

impl UpperSemilattice for usize

Source§

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

Source§

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

Source§

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

Implementors§