Skip to main content

OptPass

Trait OptPass 

Source
pub trait OptPass: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn apply(&self, plan: LogicalPlan) -> LogicalPlan;
}
Expand description

A single optimizer rewrite rule.

Required Methods§

Source

fn name(&self) -> &'static str

Short name identifying this pass (for tracing / debugging).

Source

fn apply(&self, plan: LogicalPlan) -> LogicalPlan

Apply the rewrite to plan, returning the (possibly modified) plan.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§