split_arr

Function split_arr 

Source
pub const fn split_arr<const LEFT: usize, const N: usize, T>(
    arr: &[T; N],
) -> (&[T; LEFT], &[T; { _ }])
where [(); { _ }]:,
Expand description

Split an array reference into a reference to the left half and a reference to the right half. The sizes of the halves are validated at compile time.