2 releases

new 0.1.1 May 27, 2023
0.1.0 Jul 23, 2022

#131 in Math

Download history 8783/week @ 2023-02-04 9540/week @ 2023-02-11 9327/week @ 2023-02-18 11814/week @ 2023-02-25 13258/week @ 2023-03-04 14820/week @ 2023-03-11 15988/week @ 2023-03-18 16061/week @ 2023-03-25 17326/week @ 2023-04-01 17668/week @ 2023-04-08 21696/week @ 2023-04-15 23574/week @ 2023-04-22 19560/week @ 2023-04-29 20398/week @ 2023-05-06 19133/week @ 2023-05-13 17872/week @ 2023-05-20

79,861 downloads per month
Used in 96 crates (6 directly)

MIT license

23KB
557 lines

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


lib.rs:

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.

Dependencies