Trait OpsIndex
Source pub trait OpsIndex<Idx: ?Sized> {
type Output: ?Sized;
// Required method
fn index(&self, index: Idx) -> &Self::Output;
}
The returned type after indexing.
Performs the indexing (container[index]
) operation.
§Panics
May panic if the index is out of bounds.