Trait quartet::SliceIndex[][src]

pub trait SliceIndex<'a> {
    type Output;
    fn get(self, slice: &NibSlice<'a>) -> Option<Self::Output>;
}
Expand description

A helper trait used for indexing operations

This is modeled after std::slice::SliceIndex, which slight modification to return owned types (as is required for our double-fat slice references).

Associated Types

Type returned by this indexing

Required methods

Returns a shared reference to the output at this location, if in bounds.

Implementations on Foreign Types

Implementors