Skip to main content

EnumVariantRegistry

Type Alias EnumVariantRegistry 

Source
pub type EnumVariantRegistry = HashMap<String, EnumVariantInfo>;
Expand description

Maps an enum-variant name to its EnumVariantInfo. Variant names are globally unique within a v1 Bock program (no per-enum namespacing at use sites โ€” Red, not Color.Red), so a flat map keyed by the bare variant name resolves every construction and pattern site.

Aliased Typeยง

pub struct EnumVariantRegistry { /* private fields */ }