Crate decorum [] [src]

Ordering, equality, and hasing for floating point types.

Traits

FloatProxy

A floating point proxy.

Infinite

A floating point value that can be infinite.

Nan

A floating point value that can be NaN.

Primitive

A raw floating point value.

Real

A floating point representation of a real number.

Functions

cmp_float
cmp_float_array
cmp_float_slice
eq_float
eq_float_array
eq_float_slice
hash_float

Hashes a raw floating point value.

hash_float_array

Hashes an array of raw floating point values.

hash_float_slice

Hashes a slice of raw floating point values.

Type Definitions

Finite

An ordered and normalized floating point value that must represent a real number. NaN, INF, etc. are not allowed. This is sometimes referred to simply as a "real".

N32

An alias for a floating point value that cannot be NaN.

N64

An alias for a floating point value that cannot be NaN.

NotNan

An ordered and normalized floating point value that cannot be NaN. Other IEEE-754 values like INF and negative zero are allowed.

Ordered

An ordered and normalized floating point value that does not constraint its values. Any IEEE-754 value is allowed, such as NaN, INF, and negative zero.

R32

An alias for a floating point value that represents a real number.

R64

An alias for a floating point value that represents a real number.