Trait enum_map::EnumArray

source ·
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.

Required Associated Types§

Representation of an enum map for type V.

Implementations on Foreign Types§

Implementors§