Skip to main content

PassExecutor

Trait PassExecutor 

Source
pub trait PassExecutor {
    // Required methods
    fn execute(&self, ctx: &PassContext);
    fn name(&self) -> &str;
}
Expand description

Trait for pass execution callbacks. Each built-in pass implements this.

Required Methods§

Source

fn execute(&self, ctx: &PassContext)

Execute the pass, given its context.

Source

fn name(&self) -> &str

Name of the pass (for debugging).

Implementors§