pub trait CubeIndex<T: Index> {
type Output: CubeType;
// Provided method
fn cube_idx(&self, _i: T) -> &Self::Output { ... }
}
Expand description
Fake indexation so we can rewrite indexes into scalars as calls to this fake function in the non-expanded function