Function indices::indices_array

source ·
pub fn indices_array<'a, T, const N: usize>(
    slice: &'a mut [T],
    indices: &[usize; N]
) -> [&'a mut T; N]
Expand description

Returns mutable references for the requested indices in the provided array. Panics if any index is out of bounds or duplicate indices.