trait Offset<D> { // Required method fn offset(&self, idx: D) -> usize; }
Get the offset into the array for a given index.