Closed
Description
Provide derivative({PartialEq, Eq, PartialOrd, Ord})
with:
Eq
:- custom
bound
- custom
PartialEq
:- custom
bound
-
ignore
on a field -
compare_with
on a field
- custom
Ord
:- custom
bound
-
ignore
on a field -
compare_with
on a field
- custom
PartialOrd
:- custom
bound
-
ignore
on a field -
compare_with
on a field
- custom
enum
are tricky¹ as there is no stable way to compare discriminants yet. See rust-lang/rfcs#1696.
1: not for Eq
.