3 unstable releases

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

#194 in Math

Download history 83193/week @ 2024-10-14 90373/week @ 2024-10-21 86094/week @ 2024-10-28 90527/week @ 2024-11-04 74630/week @ 2024-11-11 81018/week @ 2024-11-18 81273/week @ 2024-11-25 86714/week @ 2024-12-02 82230/week @ 2024-12-09 78912/week @ 2024-12-16 48316/week @ 2024-12-23 55097/week @ 2024-12-30 90614/week @ 2025-01-06 93405/week @ 2025-01-13 90577/week @ 2025-01-20 89832/week @ 2025-01-27

370,717 downloads per month
Used in 439 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

~165KB