mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-06 23:17:37 +00:00
![]() Point out that total_cmp is no strict superset of partial comparison Partial comparison and total_cmp are not equal. This helps preventing the mistake of creating float wrappers that base their Ord impl on total_cmp and their PartialOrd impl on the PartialOrd impl of the float type. PartialOrd and Ord [are required to agree with each other](https://doc.rust-lang.org/std/cmp/trait.Ord.html#how-can-i-implement-ord). |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |