pub fn chunk_by<T, F>(slice: &[T], pred: F) -> ChunkBy<'_, T, F> ⓘwhere F: FnMut(&T, &T) -> bool,
A slice::chunk_by implementation, copied from std.
slice::chunk_by
std