3 unstable releases

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

#140 in Math

Download history 72808/week @ 2024-07-14 76535/week @ 2024-07-21 71636/week @ 2024-07-28 67580/week @ 2024-08-04 75641/week @ 2024-08-11 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 86143/week @ 2024-10-27

351,333 downloads per month
Used in 385 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

~180KB