Skip to main content

DynPlanReduceRule

Trait DynPlanReduceRule 

Source
pub trait DynPlanReduceRule:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn matches(&self, plan: &PlanRef) -> bool;
    fn reduce(&self, plan: &PlanRef) -> VortexResult<Option<PlanRef>>;
}
Expand description

Type-erased interface used by PlanRuleSet.

Required Methods§

Source

fn matches(&self, plan: &PlanRef) -> bool

Returns whether this rule supports the concrete plan operator.

Source

fn reduce(&self, plan: &PlanRef) -> VortexResult<Option<PlanRef>>

Attempts to replace plan.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§