Enum nalgebra::PartialOrdering
[−]
[src]
pub enum PartialOrdering { 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 PartialOrdering
[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) -> PartialOrdering
Creates a PartialOrdering
from an Ordering
.
fn to_ordering(self) -> Option<Ordering>
Converts this PartialOrdering
to an Ordering
.
Returns None
if self
is NotComparable
.
Trait Implementations
impl Eq for PartialOrdering
[src]
impl PartialEq for PartialOrdering
[src]
fn eq(&self, __arg_0: &PartialOrdering) -> 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 Encodable for PartialOrdering
[src]
impl Decodable for PartialOrdering
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<PartialOrdering, __D::Error>
impl Clone for PartialOrdering
[src]
fn clone(&self) -> PartialOrdering
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