Internal implementation of traits for enum_discriminant crate
Trait to retrieve the discriminant of an enum variant with a repr(T) at runtime
A minimalistic, `no_std` compatible trait and procedural macro for extracting discriminants from enums at zero cost.
A minimalistic, `no_std` compatible trait and procedural macro for extracting discriminants from enums at zero cost.
Derive macro to implement Hash trait based on enum's discriminants only and ignore variant's fields
Derive macros for EtherCrab
A highly parallel Perl 5 interpreter written in Rust
AI/Human task management system with file-based storage
The DiscriminantOrdEq macro is designed to derive implementations of the Ord, PartialOrd, 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.
A library for creating tables with enums as key.
Derive macro for enum-table.
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.