pub trait FunctionPass {
// Required methods
fn run_on_function(
&mut self,
ctx: &mut Context,
func: &mut Function,
) -> bool;
fn name(&self) -> &'static str;
}Expand description
A pass that transforms a single function.
Required Methods§
Sourcefn run_on_function(&mut self, ctx: &mut Context, func: &mut Function) -> bool
fn run_on_function(&mut self, ctx: &mut Context, func: &mut Function) -> bool
Apply this pass to func. Returns true if the IR was modified.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".