swc_common::pass

Trait CompilerPass

Source
pub trait CompilerPass {
    // Required method
    fn name() -> Cow<'static, str>;
}
Expand description

A named compiler pass.

Required Methods§

Source

fn name() -> Cow<'static, str>

  • name should follow hyphen-case.
  • an implementation should return same name

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<A, B> CompilerPass for AndThen<A, B>

Source§

impl<V> CompilerPass for Repeat<V>

impl<V> CompilerPass for Folder<V>