Trait std::cmp::TotalOrd

pub trait TotalOrd: TotalEq {
    fn cmp(&self, other: &Self) -> Ordering;
}

Trait for types that form a total order

Required Methods

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

Implementors