3 unstable releases

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

#301 in Math

Download history 86680/week @ 2024-11-30 82701/week @ 2024-12-07 80738/week @ 2024-12-14 45708/week @ 2024-12-21 57111/week @ 2024-12-28 86012/week @ 2025-01-04 94469/week @ 2025-01-11 91962/week @ 2025-01-18 96056/week @ 2025-01-25 108848/week @ 2025-02-01 190914/week @ 2025-02-08 180906/week @ 2025-02-15 207045/week @ 2025-02-22 231816/week @ 2025-03-01 216572/week @ 2025-03-08 181530/week @ 2025-03-15

874,193 downloads per month
Used in 468 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