3 unstable releases

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

#92 in Math

Download history 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 52100/week @ 2024-04-09 53222/week @ 2024-04-16 58681/week @ 2024-04-23 57106/week @ 2024-04-30 52122/week @ 2024-05-07

230,448 downloads per month
Used in 305 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

~185KB