[][src]Crate frunk_enum_core

This crate augments the frunk crate with extra functionallity to allow transmogrification between enums with similar structures.

This crate specifically defines the data strcutures 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

variant

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

Structs

Variant

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

Enums

HEither

A building block for a generic enum. The "additive-type" mirror for frunk::HCons. This is normally used as:

Void

An uninhabited type.