Crate frunk_enum_core
source ·Expand description
This crate augments the frunk
crate with extra functionallity to allow transmogrification
between enums with similar structures.
This crate specifically defines the data structures used in the generic representation of an
enum, the frunk-enum-derive
crate adds a proc-macro to auto-generate the per-type code needed
to take advantage of this core function.
Macros
- A macro to ease the creation of
Variant
s. Seefrunk::field!
for usage.
Structs
- A generic representation of an enum variant. This holds the ident of the variant at both type and value levels.
Enums
- A building block for a generic enum. The “additive-type” mirror for
frunk::HCons
. This is normally used as: - An uninhabited type.