Skip to main content

vec_chunks

Function vec_chunks 

Source
pub fn vec_chunks<T: Clone>(v: &[T], size: usize) -> Vec<Vec<T>>
Expand description

Split a slice into chunks of size.

The last chunk may be shorter than size.