Crate strict_num
source Β·Expand description
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.
Macros§
- impl_
approx_ π32 - impl_
approx_ π64 - impl_
display π
Structs§
- An immutable, finite
f32
. - An immutable, finite
f64
. - An immutable, finite
f32
that is known to be > 0. - An immutable, finite
f64
that is known to be > 0. - An immutable, finite
f32
in a 0..=1 range. - An immutable, finite
f64
in a 0..=1 range. - An immutable, finite
f32
that is known to be >= 0. - An immutable, finite
f64
that is known to be >= 0.