pub trait SrcIndex<T: SrcSlice + ?Sized> {
type Output: SrcTarget + ?Sized;
// Required methods
fn get(self, slice: Src<T>) -> Src<Self::Output>;
fn get_weak(self, slice: WeakSrc<T>) -> WeakSrc<Self::Output>;
}Expand description
A helper trait for Src::slice and WeakSrc::slice.
Analagous to SliceIndex.