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§
Sourcefn least_upper_bound(&self, other: &Self) -> Self
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.