Function hybrid_array::slice_as_chunks
source · pub fn slice_as_chunks<T, N: ArraySize>(buf: &[T]) -> (&[Array<T, N>], &[T])
Expand description
Splits the shared slice into a slice of N
-element arrays, starting at the beginning
of the slice, and a remainder slice with length strictly less than N
.
Panics
Panics if N
is 0.