swc_ecma_transforms_base::perf

Trait 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>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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