# Crate decorum [−] [src]

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

## Traits

Encoding |
Floating-point encoding. |

FloatProxy |
A floating-point proxy. |

Infinite |
A floating-point value that can be infinite ( |

Nan |
A floating-point value that can be |

Real |
A floating-point representation of a real number. |

## Functions

cmp_float |
Compares primitive floating-point values. |

cmp_float_array |
Compares primitive floating-point arrays. |

cmp_float_slice |
Compares primitive floating-point slices. |

eq_float |
Determines if primitive floating-point values are equal. |

eq_float_array |
Determines if primitive floating-point arrays are equal. |

eq_float_slice |
Determines if primitive floating-point slices are equal. |

hash_float |
Hashes a primitive floating-point value. |

hash_float_array |
Hashes an array of primitive floating-point values. |

hash_float_slice |
Hashes a slice of primitive floating-point values. |

## Type Definitions

Finite |
An ordered and canonicalized floating-point value that must represent a real number. |

N32 |
An alias for a floating-point value that cannot be |

N64 |
An alias for a floating-point value that cannot be |

NotNan |
An ordered and canonicalized floating-point value that cannot be |

Ordered |
An ordered and canonicalized floating-point value that does not constraint its values. |

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. |