[−][src]Trait totally_ordered::TotallyOrderable
Implement this for types that are not directly Ord + Eq
, but
can be at a slightly higher runtime cost. Implemented for f32
and f64
.
Required methods
fn total_eq(&self, other: &Self) -> bool
A true equality comparison. Can be more expensive than standard
PartialEq
.
fn total_cmp(&self, other: &Self) -> Ordering
A totally ordered comparison. Can be more expensive than standard
PartialOrd
.
fn total_hash<H: Hasher>(&self, state: &mut H)
A hashing function that matches total_eq
. As the wrapped type
doesn't implement Eq
, it can't be Hash
directly.
Implementors
impl TotallyOrderable for f32
[src]
Implements the IEEE 754-2008 binary32/binary64 total ordering predicate.
fn total_eq(&self, other: &Self) -> bool
[src]
fn total_cmp(&self, other: &Self) -> Ordering
[src]
fn total_hash<H: Hasher>(&self, state: &mut H)
[src]
impl TotallyOrderable for f64
[src]
Implements the IEEE 754-2008 binary32/binary64 total ordering predicate.