[][src]Type Definition syn_codegen::Variants

type Variants = IndexMap<String, Vec<Type>>;

Variants of an enum syntax tree node.

The keys in the map are the variant names.

Variants are unit variants if they hold no data and tuple variants otherwise. The Syn syntax tree does not make use of braced variants.