Provide `derivative({PartialEq, Eq, PartialOrd, Ord})` with: - `Eq`: - [x] custom `bound` - `PartialEq`: - [x] custom `bound` - [x] `ignore` on a field - [x] `compare_with` on a field - `Ord`: - [x] custom `bound` - [x] `ignore` on a field - [x] `compare_with` on a field - `PartialOrd`: - [x] custom `bound` - [x] `ignore` on a field - [x] `compare_with` on a field `enum` are tricky¹ as there is no stable way to compare discriminants yet. See https://github.com/rust-lang/rfcs/pull/1696. --- 1: not for `Eq`.
Provide
derivative({PartialEq, Eq, PartialOrd, Ord})with:Eq:boundPartialEq:boundignoreon a fieldcompare_withon a fieldOrd:boundignoreon a fieldcompare_withon a fieldPartialOrd:boundignoreon a fieldcompare_withon a fieldenumare tricky¹ as there is no stable way to compare discriminants yet. See rust-lang/rfcs#1696.1: not for
Eq.