2 releases
new 0.1.1 | May 27, 2023 |
---|---|
0.1.0 | Jul 23, 2022 |
#131 in Math
79,861 downloads per month
Used in 96 crates
(6 directly)
23KB
557 lines
strict-num
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:
- [
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.