swc_ecma_transforms::perf

Trait ParFold

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§

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§

§

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