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§
Sourcefn apply(&self, plan: LogicalPlan) -> LogicalPlan
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".