pub trait KeyPathIndexable<T>where
T: ?Sized,{
type Output;
// Required method
fn idx(self) -> Self::Output;
}
Expand description
The trait that powers indexing via key-path. There are not separate traits for move-by-index,
mut-ref-by-index, and ref-by-index. Instead, KeyPathIndexable
is implemented for T
, &T
,
and &mut T
separately.