15 releases (5 stable)

new 2.0.0 Jul 10, 2020
1.1.0 Jun 30, 2020
1.0.2 Mar 13, 2019
1.0.1 Sep 12, 2018
0.0.1 Nov 11, 2014

#3 in Rust patterns

Download history 39239/week @ 2020-03-25 37899/week @ 2020-04-01 33723/week @ 2020-04-08 39098/week @ 2020-04-15 38189/week @ 2020-04-22 41665/week @ 2020-04-29 39822/week @ 2020-05-06 41132/week @ 2020-05-13 39410/week @ 2020-05-20 42592/week @ 2020-05-27 48961/week @ 2020-06-03 46068/week @ 2020-06-10 42180/week @ 2020-06-17 44808/week @ 2020-06-24 42827/week @ 2020-07-01 41864/week @ 2020-07-08

180,865 downloads per month
Used in 736 crates (110 directly)

MIT license

24KB
589 lines

Ordered Floats

Provides several wrapper types for Ord and Eq implementations on f64.

Usage

Use the crates.io repository; add this to your Cargo.toml along with the rest of your dependencies:

[dependencies]
ordered-float = "2.0"

See the API documentation for further details.

no_std

To use ordered_float without requiring the Rust standard library, disable the default std feature:

[dependencies]
ordered-float = { version = "1.0", default-features = false }

License

MIT


lib.rs:

Wrappers for total order on Floats.

Dependencies

~215KB