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.
Structs§
- Finite
F32 - An immutable, finite
f32
. - Finite
F64 - An immutable, finite
f64
. - NonZero
Positive F32 - An immutable, finite
f32
that is known to be > 0. - NonZero
Positive F64 - An immutable, finite
f64
that is known to be > 0. - Normalized
F32 - An immutable, finite
f32
in a 0..=1 range. - Normalized
F64 - An immutable, finite
f64
in a 0..=1 range. - Positive
F32 - An immutable, finite
f32
that is known to be >= 0. - Positive
F64 - An immutable, finite
f64
that is known to be >= 0.
Traits§
- Approx
Eq - A trait for approximate equality comparisons.
- Approx
EqUlps - ApproxEqUlps is a trait for approximate equality comparisons. The associated type Flt is a floating point type which implements Ulps, and is required so that this trait can be implemented for compound types (e.g. vectors), not just for the floats themselves.
- Ulps