3 unstable releases

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

#93 in Math

Download history 44172/week @ 2024-01-02 47800/week @ 2024-01-09 55400/week @ 2024-01-16 53439/week @ 2024-01-23 52082/week @ 2024-01-30 53854/week @ 2024-02-06 51908/week @ 2024-02-13 51343/week @ 2024-02-20 53495/week @ 2024-02-27 56554/week @ 2024-03-05 58845/week @ 2024-03-12 55557/week @ 2024-03-19 58561/week @ 2024-03-26 50567/week @ 2024-04-02 52103/week @ 2024-04-09 45263/week @ 2024-04-16

215,399 downloads per month
Used in 286 crates (6 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

~195KB