swc_core::ecma::transforms::base::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>;
}
Available on crate feature __ecma and (crate features __ecma_transforms or __testing_transform) only.

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,