Crate decorum [] [src]

Constrained, ordered, hashable floating point values.

Structs

ConstrainedFloat

Constrained, ordered, hashable floating point proxy.

FiniteConstraint

Disallows NaN, INF, and -INF floating point values.

NotNanConstraint

Disallows NaN floating point values.

Traits

Infinite

A value that can be infinite.

Nan

A value that can be NaN.

Real

Functions

hash_float
hash_float_array
hash_float_slice

Type Definitions

Finite

A floating point value that cannot be NaN, INF, or -INF (i.e., a represnetation of a real value).

N32
N64
NotNan

A floating point value that cannot be NaN.

Ordered

A floating point value that can have any IEEE-754 value, but is ordered and normalized.

R32
R64