1 2 3 4 5 6 7 8
pub trait Index<Idx> where Idx: ?Sized, { type Output: ?Sized; fn index(&self, index: Idx) -> &Self::Output; }