Crate enum_collections
source ·Structs§
- A map of enum variants to values. EnumMap is a fixed-size map, where each variant of the enum is mapped to a value. EnumMap is a a zero-cost abstraction over an array, where the index of the array corresponds to the position of the variant in the enum.
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::Enumeratedimplementation for the underlying Enum. Also derives Copy and Clone.