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.
pub const fn slice_get<T, I>(slice: &[T], index: I) -> Option<&[T]>where
I: RangeIndex,
Const equivalent of <[T]>::get
for ranges.