pub trait FunctionPass {
// Required methods
fn name(&self) -> &str;
fn run_on_function(&mut self, func: &mut Function) -> bool;
}Expand description
A transformation pass that mutates one function at a time.
Required Methods§
Sourcefn run_on_function(&mut self, func: &mut Function) -> bool
fn run_on_function(&mut self, func: &mut Function) -> bool
Runs the transformation on the given function.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".