You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the current status of this? I have a project where it would be significantly helpful if I could derive Ord with custom bounds (to work around rust-lang/rust#26925 ). I'd submit a PR, but unfortunately the proc-macro code is still fairly opaque to me and I don't want to do it wrong.
Provide
derivative({PartialEq, Eq, PartialOrd, Ord})
with:Eq
:bound
PartialEq
:bound
ignore
on a fieldcompare_with
on a fieldOrd
:bound
ignore
on a fieldcompare_with
on a fieldPartialOrd
:bound
ignore
on a fieldcompare_with
on a fieldenum
are tricky¹ as there is no stable way to compare discriminants yet. See rust-lang/rfcs#1696.1: not for
Eq
.The text was updated successfully, but these errors were encountered: