3 unstable releases

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

#165 in Math

Download history 76386/week @ 2024-08-18 82612/week @ 2024-08-25 81259/week @ 2024-09-01 82374/week @ 2024-09-08 76083/week @ 2024-09-15 84175/week @ 2024-09-22 80426/week @ 2024-09-29 84927/week @ 2024-10-06 83611/week @ 2024-10-13 89934/week @ 2024-10-20 86135/week @ 2024-10-27 90988/week @ 2024-11-03 73429/week @ 2024-11-10 80145/week @ 2024-11-17 82327/week @ 2024-11-24 79745/week @ 2024-12-01

322,676 downloads per month
Used in 401 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