pub trait InjectVars {
// Required method
fn take_vars(&mut self) -> Vec<VarDeclarator>;
}Expand description
Implemented for passes which inject variables.
If a pass depends on other pass which injects variables, this trait can be used to keep the variables.
Required Methods§
fn take_vars(&mut self) -> Vec<VarDeclarator>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".