Module polars_utils::total_ord
source · Structs§
Traits§
- This elides creating a
TotalOrdWrap
for types that don’t need it. - Alternative trait for Eq. By consistently using this we can still be generic w.r.t Eq while getting a total ordering for floats.
- Alternative trait for Hash. By consistently using this we can still be generic w.r.t Hash while being able to hash floats.
- Alternative trait for Ord. By consistently using this we can still be generic w.r.t Ord while getting a total ordering for floats.
Functions§
- Converts an f32 into a canonical form, where -0 == 0 and all NaNs map to the same value.
- Converts an f64 into a canonical form, where -0 == 0 and all NaNs map to the same value.