Totally Ordered IEEE Float Comparison for Rust
This crate adds the TotallyOrderable
trait for f32
and f64
values as well as the ABI-transparent TotallyOrdered
type which adds Ord + Eq + Hash
to wrapped floating point values.
Main use case: sorting of floating-point arrays which may or may not contain not-a-numbers, infinities, and positive or negative zeros.
use TotallyOrdered;
let mut values : = ;
new_slice_mut.sort;