1 unstable release
0.1.0 | Aug 9, 2024 |
---|
#1712 in Procedural macros
5KB
The DiscriminantHashEq macro is designed to derive implementations of the Hash, PartialEq, and Eq traits for enum types. These implementations are based solely on the enum's variant discriminants, ignoring any associated data within the variants. This means that two enum values are considered equal if they are the same variant, regardless of the values of any fields they might contain.
Dependencies
~1.5MB
~37K SLoC