pub trait ArrayIndex<T> { type Output; fn index(&self, index: T) -> Self::Output; }
Index trait to get owned values of an array.