Function slice_to_array_mut

Source
pub fn slice_to_array_mut<T, const N: usize>(
    source: &mut [T],
) -> Option<&mut [T; N]>
Expand description

Turns a mutable slice into a mutable reference to an array

Returns None if N is lower than the input slice length