3 unstable releases

0.2.0 Dec 23, 2023
0.1.1 May 27, 2023
0.1.0 Jul 23, 2022

#158 in Math

Download history 77580/week @ 2024-09-19 84083/week @ 2024-09-26 84962/week @ 2024-10-03 83035/week @ 2024-10-10 87589/week @ 2024-10-17 88640/week @ 2024-10-24 88886/week @ 2024-10-31 78170/week @ 2024-11-07 78161/week @ 2024-11-14 82791/week @ 2024-11-21 84410/week @ 2024-11-28 83018/week @ 2024-12-05 83211/week @ 2024-12-12 56572/week @ 2024-12-19 49883/week @ 2024-12-26 61245/week @ 2025-01-02

264,594 downloads per month
Used in 425 crates (7 directly)

MIT license

32KB
771 lines

strict-num

Build Status Crates.io Documentation Rust 1.56+

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


lib.rs:

A collection of bounded numeric types.

Includes:

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

Dependencies

~170KB