Enum core::cmp::Ordering[src]

pub enum Ordering {
    Less,
    Equal,
    Greater,
}

An ordering is, e.g, a result of a comparison between two values.

Variants

Less

An ordering where a compared value is less [than another].

Equal

An ordering where a compared value is equal [to another].

Greater

An ordering where a compared value is greater [than another].

Trait Implementations

impl Eq for Ordering

impl Ord for Ordering

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

impl PartialOrd for Ordering

fn lt(&self, other: &Ordering) -> bool

fn le(&self, other: &Self) -> bool

fn gt(&self, other: &Self) -> bool

fn ge(&self, other: &Self) -> bool

Derived Implementations

impl Show for Ordering

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Ordering

fn eq(&self, __arg_0: &Ordering) -> bool

fn ne(&self, __arg_0: &Ordering) -> bool

impl Clone for Ordering

fn clone(&self) -> Ordering

fn clone_from(&mut self, source: &Self)