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§
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.