Crate strict_num

source ·
Expand description

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.

Structs

Traits

  • A trait for approximate equality comparisons.
  • 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.