Function subslice_to_array

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

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

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