Crate pieced

Source

Functions§

as_exact
Splits the slice into a slice of N-element arrays, assuming that there’s no remainder.
as_with_rest
Splits the slice into a slice of N-element arrays, starting at the beginning of the slice, and a rest slice with length strictly less than N.