Enum nalgebra::POrdering
[−]
[src]
pub enum POrdering {
PartialLess,
PartialEqual,
PartialGreater,
NotComparable,
}Result of a partial ordering.
Variants
PartialLessResult of a strict comparison.
PartialEqualEquality relationship.
PartialGreaterResult of a strict comparison.
NotComparableResult of a comparison between two objects that are not comparable.
Methods
impl POrdering[src]
fn is_eq(&self) -> bool
Returns true if self is equal to Equal.
fn is_lt(&self) -> bool
Returns true if self is equal to Less.
fn is_le(&self) -> bool
Returns true if self is equal to Less or Equal.
fn is_gt(&self) -> bool
Returns true if self is equal to Greater.
fn is_ge(&self) -> bool
Returns true if self is equal to Greater or Equal.
fn is_not_comparable(&self) -> bool
Returns true if self is equal to NotComparable.
fn from_ordering(ord: Ordering) -> POrdering
Creates a POrdering from an Ordering.
fn to_ordering(self) -> Option<Ordering>
Converts this POrdering to an Ordering.
Returns None if self is NotComparable.
Trait Implementations
impl Copy for POrdering[src]
impl Debug for POrdering[src]
impl Clone for POrdering[src]
fn clone(&self) -> POrdering
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Decodable for POrdering[src]
impl Encodable for POrdering[src]
impl PartialEq for POrdering[src]
fn eq(&self, __arg_0: &POrdering) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.