Trait swc_ecma_transforms_base::perf::ParFold

source ·
pub trait ParFold: Fold + Parallel {
    // Required method
    fn fold_par<N>(&mut self, threshold: usize, nodes: Vec<N>) -> Vec<N>
       where N: Send + Sync + FoldWith<Self>;
}

Required Methods§

source

fn fold_par<N>(&mut self, threshold: usize, nodes: Vec<N>) -> Vec<N>
where N: Send + Sync + FoldWith<Self>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> ParFold for T
where T: Fold + Parallel,