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 = truecargo add ordered-float@2.10.1About 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 therandcrate.serde: Implements theserde::Serializeandserde::Deserializetraits.schemars: Implements theschemars::JsonSchematrait.proptest: Implements theproptest::Arbitrarytrait.
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
2026-03-26 11:00:54 +00:00
Assets (1)
Versions (1)
View all
Cargo
0
Jonathan Reem <jonathan.reem@gmail.com>
Matt Brubeck <mbrubeck@limpet.net>
MIT
21 KiB
ordered-float-2.10.1.crate
21 KiB
2.10.1
2026-03-26