pub trait EnumArray<V>: Enum {
type Array: Array<V>;
}
Expand description
Trait associating enum with an array.
This exists due to limitations of Rust compiler that prevent arrays from using
associated constants in structures. The array length must match LENGTH of an
Enum.