pub trait CmpExt {
// Required method
fn cmp_ext(&self, other: &Self) -> Ordering;
}Expand description
Extension trait for comparison operations that works with both ordered and floating-point types.
This trait provides a unified interface for comparison operations across different numeric types,
handling the special case of floating-point numbers which don’t implement Ord due to NaN values.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.