Function split_array::split_arr

source ·
pub const fn split_arr<const LEFT: usize, const N: usize, T>(
    arr: &[T; N]
) -> (&[T; LEFT], &[T; { _ }])
where (): True<{ _ }>,
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.