pub fn subslice_range(inner: &[u8], outer: &[u8]) -> Range<usize>
Expand description

Returns the range of inner within outer, such that outer[range] is the same as inner.

This method requires that inner is a sub-slice of outer, and if that isn’t true then this method will panic.