Closed as not planned
Closed as not planned
Description
It's obvious that if a == b
, then a.partialCmp(b) == Some(Ordering::Equal)
. But what about the converse? Can ==
implement a stricter sense of equality than partialCmp
does? For example, suppose I have a type that wraps Arc<String>
. Could I legally give it Ord/PartialOrd
instances that compare the String
s, while giving it Eq/PartialEq
instances that call ptr_eq
on the Arc
?