Crate enum_collections
source ·Re-exports§
pub use crate::enumerated::Enumerated;
Macros§
- Creates an EnumMap with user-provided values.
- Initializes an EnumMap with default values for all variants not explicitly specified.
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.
Derive Macros§
- Creates
enum_map::Enumeratedimplementation for the underlying Enum. Also derives Copy and Clone.