Sunbeam Studios

Our open-source projects, here for you!

ordered-float (2.10.1)

Published 2026-03-26 11:00:54 +00:00 by siennathesane

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add ordered-float@2.10.1

About this package

Wrappers for total ordering on floats

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 = "2.0", default-features = false }

Optional features

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

  • rand: Adds implementations for various distribution types provided by the rand crate.
  • serde: Implements the serde::Serialize and serde::Deserialize traits.
  • schemars: Implements the schemars::JsonSchema trait.
  • proptest: Implements the proptest::Arbitrary trait.

License

MIT

Dependencies

ID Version
arbitrary ^1.0.0
num-traits ^0.2.1
proptest ^1.0.0
rand ^0.8.3
rkyv ^0.7
schemars ^0.6.5
serde ^1.0
serde_test ^1.0

Keywords

no_std ord f64 f32 sort
Details
Cargo
2026-03-26 11:00:54 +00:00
0
Jonathan Reem <jonathan.reem@gmail.com>
Matt Brubeck <mbrubeck@limpet.net>
MIT
21 KiB
Assets (1)
Versions (1) View all
2.10.1 2026-03-26