OpsIndex

Trait OpsIndex 

Source
pub trait OpsIndex<Idx>
where Idx: ?Sized,
{ type Output: ?Sized; // Required method fn index(&self, index: Idx) -> &Self::Output; }

Required Associated Types§

Source

type Output: ?Sized

The returned type after indexing.

Required Methods§

Source

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

Performs the indexing (container[index]) operation.

§Panics

May panic if the index is out of bounds.

Implementations on Foreign Types§

Source§

impl<I> OpsIndex<I> for Bson
where I: Index,

Source§

type Output = Bson

Source§

fn index(&self, index: I) -> &Bson

Implementors§