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§

source

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

Implements a meaningless, arbitrary ordering.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: ArbitraryOrd> ArbitraryOrd for &T

source§

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

Implementors§