Trait lrs::ops::Index

Objects that implement the immutable subscript operator.

Syntax

trait Index<Idx>
    where Idx: ?Sized,
{
    type Output: ?Sized;

    /* Required methods */
    fn index(&self, index: Idx) -> &<Self as Index<Idx>>::Output
}

Associated types

NameDescription
Output

The output of the operator.

Methods

ReceiverNameDescription
&selfindex

The method that will be called by the operator.