3 unstable releases

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

#88 in Math

Download history 58627/week @ 2024-03-28 46513/week @ 2024-04-04 54621/week @ 2024-04-11 53262/week @ 2024-04-18 59365/week @ 2024-04-25 57528/week @ 2024-05-02 59910/week @ 2024-05-09 59824/week @ 2024-05-16 55495/week @ 2024-05-23 64141/week @ 2024-05-30 69724/week @ 2024-06-06 77858/week @ 2024-06-13 72108/week @ 2024-06-20 73124/week @ 2024-06-27 67193/week @ 2024-07-04 62756/week @ 2024-07-11

288,467 downloads per month
Used in 337 crates (6 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