3 unstable releases

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

#143 in Math

Download history 71700/week @ 2024-07-25 68301/week @ 2024-08-01 72899/week @ 2024-08-08 77279/week @ 2024-08-15 82626/week @ 2024-08-22 77973/week @ 2024-08-29 84027/week @ 2024-09-05 79348/week @ 2024-09-12 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 78159/week @ 2024-11-07

358,877 downloads per month
Used in 395 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

~175KB