Trait DefaultOrd

Source
pub trait DefaultOrd: DefaultPartialOrd + Eq {
    // Required method
    fn default_cmp(&self, other: &Self) -> Ordering;
}
Expand description

Variant of Ord that compares with default order.

Required Methods§

Source

fn default_cmp(&self, other: &Self) -> Ordering

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.

Implementors§