parallel_fold_efficient

Function parallel_fold_efficient 

Source
pub fn parallel_fold_efficient<T, R, F, G, C>(
    items: &[T],
    identity: G,
    fold_op: F,
    combine: C,
) -> R
where T: Sync + Send, R: Send + Clone + 'static + Debug, F: Fn(R, &T) -> R + Send + Sync + Clone, G: Fn() -> R + Send + Sync + Clone, C: Fn(R, R) -> R + Send + Sync,
Expand description

Parallel fold with minimal allocations