Function subslice_to_array_mut

Source
pub fn subslice_to_array_mut<const START: usize, const END: usize, T, const N: usize>(
    slice: &mut [T],
) -> &mut [T; N]
Expand description

Version of SubsliceToArrayMut::subslice_to_array_mut with all generic parameters listed. You should probably use this function (and a turbofish) only if the compiler cannot infer T or N.

See SubsliceToArrayMut::subslice_to_array_mut for a more convenient function with identical behavior, and for documentation about this function’s behavior.