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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.