13 releases (3 stable)

1.0.2 Mar 13, 2019
1.0.1 Sep 12, 2018
0.5.2 Sep 15, 2018
0.5.0 May 22, 2017
0.0.1 Nov 11, 2014

#10 in Rust patterns

Download history 31135/week @ 2019-12-02 33462/week @ 2019-12-09 31867/week @ 2019-12-16 19519/week @ 2019-12-23 26660/week @ 2019-12-30 29859/week @ 2020-01-06 30288/week @ 2020-01-13 31844/week @ 2020-01-20 31387/week @ 2020-01-27 31109/week @ 2020-02-03 33848/week @ 2020-02-10 31882/week @ 2020-02-17 35171/week @ 2020-02-24 34722/week @ 2020-03-02 34252/week @ 2020-03-09 33524/week @ 2020-03-16

116,782 downloads per month
Used in 638 crates (96 directly)

MIT license

22KB
501 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 = "1.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

~210KB