Re:Thoughts on Rust, a few thousand lines in
by rusbus on Wednesday January 09, 2019 @05:09PM
(#18869474)
OP here -- this post is pretty dated. I currently use the OrderedFloat [1] crate to solve this problem which works quite well and plays nicely with NaN
https://crates.io/crates/ordered-float