Enum nalgebra::POrdering
[−]
[src]
pub enum POrdering {
PartialLess,
PartialEqual,
PartialGreater,
NotComparable,
}Result of a partial ordering.
Variants
PartialLess | Result of a strict comparison. |
PartialEqual | Equality relationship. |
PartialGreater | Result of a strict comparison. |
NotComparable | Result of a comparison between two objects that are not comparable. |
Methods
impl POrdering
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.