pub trait TotalCmp:
Copy
+ Send
+ Sync {
// Required method
fn total_cmp(&self, other: &Self) -> Ordering;
}Expand description
Total ordering for sorting — floats use total_cmp (NaN sorts last),
integers and bool use their natural Ord.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".