ordered-float

Crates.ioordered-float
lib.rsordered-float
version4.5.0
sourcesrc
created_at2014-11-11 06:37:25.077211
updated_at2024-11-03 23:43:43.237892
descriptionWrappers for total ordering on floats
homepage
repositoryhttps://github.com/reem/rust-ordered-float
max_upload_size
id33
size130,325
cargo publish (github:servo:cargo-publish)

documentation

README

ordered-float

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

no_std

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

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

Optional features

The following optional features can be enabled in Cargo.toml:

  • arbitrary: Implements the arbitrary::Arbitrary trait.
  • borsh: Adds implementations for traits provided by the borsh crate.
  • bytemuck: Adds implementations for traits provided by the bytemuck crate.
  • derive-visitor: Adds implementations for traits provided by the derive-visitor crate.
  • num-cmp: Implements the num_cmp::NumCmp trait.
  • proptest: Implements the proptest::Arbitrary trait.
  • rand: Adds implementations for various distribution types provided by the rand crate.
  • rkyv_16: Implements rkyv's Archive, Serialize and Deserialize traits with size_16.
  • rkyv_32: Implements rkyv's Archive, Serialize and Deserialize traits with size_32.
  • rkyv_64: Implements rkyv's Archive, Serialize and Deserialize traits with size_64.
  • rkyv_ck: Implements the bytecheck::CheckBytes trait.
  • schemars: Implements the schemars::JsonSchema trait.
  • serde: Implements the serde::Serialize and serde::Deserialize traits.
  • speedy: Implements speedy's Readable and Writable traits.

License

MIT

Commit count: 256

cargo fmt