pub trait PartitionRule:
Send
+ Sync
+ 'static {
type Plan: PartitionedPlan;
// Required method
fn apply(
&self,
slots: &Slots<'_, Self::Plan>,
node: &BoundExpression,
) -> VortexResult<Option<Expression>>;
}Expand description
A rule describing which plan slots an expression reads.
Required Associated Types§
Sourcetype Plan: PartitionedPlan
type Plan: PartitionedPlan
The plan whose slots this rule describes.
Required Methods§
Sourcefn apply(
&self,
slots: &Slots<'_, Self::Plan>,
node: &BoundExpression,
) -> VortexResult<Option<Expression>>
fn apply( &self, slots: &Slots<'_, Self::Plan>, node: &BoundExpression, ) -> VortexResult<Option<Expression>>
For a plan and an expression, answer which plan’s slots does this expression use.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".