derive_more
derive_more copied to clipboard
Support `PartialEq, Eq, Hash, PartialOrd, Ord` to skip fields
trafficstars
When one has a metadata field attached for e.g. better error messages I'd like to be able to derive PartialEq, ... but skip fields like with e.g. Debug.
(It might make sense to force skipping traits in groups, I did this in derive_where to deny skipping e.g. PartialEq but not Hash https://docs.rs/derive-where/latest/derive_where/#skipping-fields)
@ModProg I'm definitely against skipping in groups, but would like to see PRs for enhancing separate derives or adding new ones.