[src]

Enum std::cmp::Ordering

pub enum Ordering {
    Less,
    Equal,
    Greater,
}

Variants

Less
Equal
Greater

Trait Implementations

impl TotalEq for Ordering

impl TotalOrd for Ordering

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

impl Ord 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

Formats the value using the given formatter.

impl Eq for Ordering

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

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

impl Clone for Ordering

fn clone(&self) -> Ordering

Returns a copy of the value. The contents of owned pointers are copied to maintain uniqueness, while the contents of managed pointers are not copied.

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

Perform copy-assignment from source.

a.clone_from(&b) is equivalent to a = b.clone() in functionality, but can be overridden to reuse the resources of a to avoid unnecessary allocations.