Crates.io | ordered-float |
lib.rs | ordered-float |
version | |
source | src |
created_at | 2014-11-11 06:37:25.077211 |
updated_at | 2024-12-19 20:52:06.030428 |
description | Wrappers for total ordering on floats |
homepage | |
repository | https://github.com/reem/rust-ordered-float |
max_upload_size | |
id | 33 |
Cargo.toml error: | TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Provides several wrapper types for Ord
and Eq
implementations on f64 and friends.
To use ordered_float
without requiring the Rust standard library, disable
the default std
feature:
[dependencies]
ordered-float = { version = "4.0", default-features = false }
If you still want to have access to the Pow
and Float
traits, enable the libm
feature.
The following optional features can be enabled in Cargo.toml
:
libm
: When not using the std
feature, enable the libm
feature of num-traits
to still access the Pow
and Float
traits.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.MIT