Skip to main content

parallel_map_indexed

Function parallel_map_indexed 

Source
pub fn parallel_map_indexed<U, F>(count: usize, f: F) -> Vec<U>
where U: Send, F: Fn(usize) -> U + Sync + Send,
Expand description

Parallel map over a range of indices

When parallel features are enabled, uses rayon’s parallel iterator. Otherwise, falls back to sequential iteration.