slice_index

Function slice_index 

Source
pub const fn slice_index<T, I>(slice: &[T], index: I) -> &[T]
where I: RangeIndex,
Expand description

Const equivalent of <[T]>::index for ranges.