pub trait Index<T> {
type Output<'a> where Self: 'a;
fn index(&self, idx: T) -> Self::Output<'_>;
}
Expand description
Index operator for immutable contexts. As opposed to std, the returned value can be a
non-reference. This allows custom reference types for things like multi-dimensional matrices.