1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//!# Enum collections
//!
//! See [EnumMap] for usage details.
//!
//! A map of enum variants to values. EnumMap is a fixed-size map, where each variant of the enum is mapped to a value.
//! This implementation of EnumMap uses **safe Rust** only and is a a zero-cost abstraction over an array (**const-sized**),
//! where the index of the array corresponds to the position of the variant in the enum.
//!
//! Because it is a thin wrapper over an array, it is stack-allocated by default. Simply `std::boxed::Box`ing it will move it to the heap, at the caller's discretion.
//!- Indexed by enum variants.
//!- IndexMut by enum variants.
//!- Debug if the enum is Debug.
//!- PartialEq if the value is PartialEq. Same for Eq.
//!
//!Debug and Eq are optional features. They are enabled by default.
//!
//!
pub use crateEnumerated;
pub use crateEnumMap;
pub use Enumerated;