Function slice_get

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

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