oden/third-party/vendor/strict-num
2024-03-08 11:03:01 -08:00
..
src Vendor things 2024-03-08 11:03:01 -08:00
.cargo-checksum.json Vendor things 2024-03-08 11:03:01 -08:00
Cargo.toml Vendor things 2024-03-08 11:03:01 -08:00
CHANGELOG.md Vendor things 2024-03-08 11:03:01 -08:00
LICENSE Vendor things 2024-03-08 11:03:01 -08:00
README.md Vendor things 2024-03-08 11:03:01 -08:00

strict-num

Build Status Crates.io Documentation Rust 1.35+

A collection of bounded numeric types.

Includes:

  • FiniteF32
  • FiniteF64
  • NonZeroPositiveF32
  • NonZeroPositiveF64
  • PositiveF32
  • PositiveF64
  • NormalizedF32
  • NormalizedF64

Unlike f32/f64, all float types implement Ord, PartialOrd and Hash, since it's guaranteed that they all are finite.

License

MIT