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.


  • A macro to ease the creation of Variants. See frunk::field! for usage.


  • A generic representation of an enum variant. This holds the ident of the variant at both type and value levels.


  • A building block for a generic enum. The “additive-type” mirror for frunk::HCons. This is normally used as:
  • An uninhabited type.