Objects that implement the immutable subscript operator.
trait Index<Idx>
where Idx: ?Sized,
{
type Output: ?Sized;
/* Required methods */
fn index(&self, index: Idx) -> &<Self as Index<Idx>>::Output
}| Name | Description |
|---|---|
| Output | The output of the operator. |
| Receiver | Name | Description |
|---|---|---|
&self | index | The method that will be called by the operator. |