Enum std::cmp::Ordering
pub enum Ordering { Less, Equal, Greater, }
Variants
Less | |
Equal | |
Greater |
Trait Implementations
impl TotalEq for Ordering
impl TotalOrd for 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
impl Eq for Ordering
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.