Skip to main content

NaiveLatticeOrd

Trait NaiveLatticeOrd 

Source
pub trait NaiveLatticeOrd<Rhs = Self>: Sealed<Rhs>
where Self: Clone + Merge<Rhs> + Sized, Rhs: Clone + Merge<Self>,
{ // Provided method fn naive_cmp(&self, other: &Rhs) -> Option<Ordering> { ... } }
Expand description

Naive lattice compare, based on the Merge::merge function.

Provided Methods§

Source

fn naive_cmp(&self, other: &Rhs) -> Option<Ordering>

Naive compare based on the Merge::merge method. This method can be very inefficient; use PartialOrd::partial_cmp instead.

This method should not be overridden.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<This, Other> NaiveLatticeOrd<Other> for This
where Self: Clone + Merge<Other>, Other: Clone + Merge<Self>,