derive_more icon indicating copy to clipboard operation
derive_more copied to clipboard

Support `PartialEq, Eq, Hash, PartialOrd, Ord` to skip fields

Open ModProg opened this issue 2 years ago • 1 comments
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 avatar Nov 05 '23 13:11 ModProg

@ModProg I'm definitely against skipping in groups, but would like to see PRs for enhancing separate derives or adding new ones.

tyranron avatar Nov 06 '23 12:11 tyranron