#ord #f64 #sort #no_std #f32

no-std ordered-float

Wrappers for total ordering on floats

15 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

#7 in Rust patterns

Download history 17468/week @ 2019-08-03 16387/week @ 2019-08-10 17336/week @ 2019-08-17 20551/week @ 2019-08-24 18160/week @ 2019-08-31 20194/week @ 2019-09-07 19867/week @ 2019-09-14 20549/week @ 2019-09-21 22537/week @ 2019-09-28 23059/week @ 2019-10-05 23294/week @ 2019-10-12 24658/week @ 2019-10-19 26512/week @ 2019-10-26 28828/week @ 2019-11-02 29038/week @ 2019-11-09

69,977 downloads per month
Used in 529 crates (89 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

~140KB