Function slice_get_mut

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

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