pub fn parallel_chunks<T>(data: Vec<T>, chunk_size: usize) -> Vec<Vec<T>>Expand description
Split a vector into chunks of specified size in parallel.
This function divides a vector into chunks of equal size (except possibly
the last chunk), similar to itertools::chunks but with parallel processing.
§Type Parameters
T: The element type, must beSend + Sync.
§Parameters
data: The input vector to chunk.chunk_size: The size of each chunk.
§Returns
A vector of vectors, where each inner vector is a chunk.