pub trait OpsIndex<Idx: ?Sized> {
    type Output: ?Sized;

    fn index(&self, index: Idx) -> &Self::Output;
}

Required Associated Types

The returned type after indexing.

Required Methods

Performs the indexing (container[index]) operation.

Panics

May panic if the index is out of bounds.

Implementors