3 unstable releases

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

#238 in Math

Download history 79824/week @ 2024-11-15 81466/week @ 2024-11-22 86440/week @ 2024-11-29 83146/week @ 2024-12-06 80934/week @ 2024-12-13 50713/week @ 2024-12-20 53396/week @ 2024-12-27 80539/week @ 2025-01-03 94626/week @ 2025-01-10 93774/week @ 2025-01-17 94461/week @ 2025-01-24 106236/week @ 2025-01-31 173056/week @ 2025-02-07 180172/week @ 2025-02-14 209053/week @ 2025-02-21 190527/week @ 2025-02-28

771,693 downloads per month
Used in 466 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

~170KB