pub trait TransformPass: Sync {
// Required method
fn transform_ctx(&self, ctx: &mut TransformCtx);
// Provided methods
fn should_run(&self, _options: &TranslateOptions) -> bool { ... }
fn name(&self) -> &str { ... }
}Expand description
A pass that transforms the crate data.
Required Methods§
fn transform_ctx(&self, ctx: &mut TransformCtx)
Provided Methods§
Sourcefn should_run(&self, _options: &TranslateOptions) -> bool
fn should_run(&self, _options: &TranslateOptions) -> bool
Whether the pass should run.