Crate decorum

source ·
Expand description

Making floating-point values behave: traits, ordering, equality, hashing, and constraints for floating-point types.

Traits

Floating-point encoding.
A floating-point value that can be infinite (-INF or INF).
A floating-point value that can be NaN.
A primitive floating-point value.
A value that can represent a real number.

Functions

Compares primitive floating-point values.
Compares primitive floating-point arrays.
Compares primitive floating-point slices.
Determines if primitive floating-point values are equal.
Determines if primitive floating-point arrays are equal.
Determines if primitive floating-point slices are equal.
Hashes a primitive floating-point value.
Hashes an array of primitive floating-point values.
Hashes a slice of primitive floating-point values.

Type Definitions

An ordered and canonicalized floating-point value that must represent a real number.
An alias for a floating-point value that cannot be NaN.
An alias for a floating-point value that cannot be NaN.
An ordered and canonicalized floating-point value that cannot be NaN.
An ordered and canonicalized floating-point value.
An alias for a floating-point value that represents a real number.
An alias for a floating-point value that represents a real number.