4 ms·
> _ it even lets you declare an array whose index is some enumerated type._ You can do this in Rust also: make a custom newtype wrapper for your array, and imp
by Ar-Curunir 5y ago
> _ it even lets you declare an array whose index is some enumerated type._
You can do this in Rust also: make a custom newtype wrapper for your array, and impl Index<CustomEnum> for the wrapped array.