Crate enum_collections

source ·

Structs§

  • A key-value map optimized for Enums used as keys.
  • A key-value table optimized for Enums used as keys. Initialized with V’s Default values.

Traits§

  • Provides means to map enum values to positions in arrays backing an EnumMap/EnumTable. Not intended to be implemented by hand. Deriving it with #[derive(Enumerated)] attribute macro is preferred.

Derive Macros§

  • Creates enum_map::Enumerated implementation for the underlying Enum. Also derives Copy and Clone.