Function subslice_index::subslice_index
[−]
[src]
pub fn subslice_index<'a, T>(slice: &'a [T], subslice: &'a [T]) -> usize
Get the index into the given slice of the first item in the given subslice.
The subslice must come from the slice, otherwise the returned index is invalid.