pub trait Rule<T: NodeType, O: Optimizer<T>>:
'static
+ Send
+ Sync {
// Required methods
fn matcher(&self) -> &RuleMatcher<T>;
fn apply(
&self,
optimizer: &O,
binding: ArcPlanNode<T>,
) -> Vec<PlanNodeOrGroup<T>>;
fn name(&self) -> &'static str;
// Provided method
fn is_impl_rule(&self) -> bool { ... }
}Required Methods§
fn matcher(&self) -> &RuleMatcher<T>
fn apply( &self, optimizer: &O, binding: ArcPlanNode<T>, ) -> Vec<PlanNodeOrGroup<T>>
fn name(&self) -> &'static str
Provided Methods§
fn is_impl_rule(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".