deno_ast::swc::transforms::perf

Trait ParVisit

Source
pub trait ParVisit: Visit + Parallel {
    // Required method
    fn visit_par<N>(&mut self, threshold: usize, nodes: &[N])
       where N: Send + Sync + VisitWith<Self>;
}

Required Methods§

Source

fn visit_par<N>(&mut self, threshold: usize, nodes: &[N])
where N: Send + Sync + VisitWith<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> ParVisit for T
where T: Visit + Parallel,