pub trait DynPlanReduceRule:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn matches(&self, plan: &PlanRef) -> bool;
fn reduce(
&self,
plan: &PlanRef,
session: &VortexSession,
) -> VortexResult<Option<PlanRef>>;
}Expand description
Type-erased interface used by PlanRuleSet.
Required Methods§
Sourcefn matches(&self, plan: &PlanRef) -> bool
fn matches(&self, plan: &PlanRef) -> bool
Returns whether this rule supports the concrete plan operator.
Sourcefn reduce(
&self,
plan: &PlanRef,
session: &VortexSession,
) -> VortexResult<Option<PlanRef>>
fn reduce( &self, plan: &PlanRef, session: &VortexSession, ) -> 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".