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
[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]

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

Formats the value using the given formatter.

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]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<POrdering, __D::Error>

impl Encodable for POrdering
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

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) -> bool
1.0.0

This method tests for !=.

impl Eq for POrdering
[src]