Trait ordered::ArbitraryOrd
source · pub trait ArbitraryOrd: Eq + PartialEq {
// Required method
fn arbitrary_cmp(&self, other: &Self) -> Ordering;
}
Expand description
Trait for types that perform an arbitrary ordering.
More specifically, this trait is for types that perform either a partial or total order but semantically it is nonsensical.
Required Methods§
sourcefn arbitrary_cmp(&self, other: &Self) -> Ordering
fn arbitrary_cmp(&self, other: &Self) -> Ordering
Implements a meaningless, arbitrary ordering.
Object Safety§
This trait is not object safe.