pub trait PlanTreeNodeBinary<C: ConventionMarker> {
// Required methods
fn left(&self) -> PlanRef<C>;
fn right(&self) -> PlanRef<C>;
fn clone_with_left_right(&self, left: PlanRef<C>, right: PlanRef<C>) -> Self;
// Provided method
fn rewrite_with_left_right(
&self,
_left: PlanRef<C>,
_left_col_change: ColIndexMapping,
_right: PlanRef<C>,
_right_col_change: ColIndexMapping,
) -> (Self, ColIndexMapping)
where Self: Sized { ... }
}
Expand description
See PlanTreeNode
Required Methods§
fn left(&self) -> PlanRef<C>
fn right(&self) -> PlanRef<C>
fn clone_with_left_right(&self, left: PlanRef<C>, right: PlanRef<C>) -> Self
Provided Methods§
Sourcefn rewrite_with_left_right(
&self,
_left: PlanRef<C>,
_left_col_change: ColIndexMapping,
_right: PlanRef<C>,
_right_col_change: ColIndexMapping,
) -> (Self, ColIndexMapping)where
Self: Sized,
fn rewrite_with_left_right(
&self,
_left: PlanRef<C>,
_left_col_change: ColIndexMapping,
_right: PlanRef<C>,
_right_col_change: ColIndexMapping,
) -> (Self, ColIndexMapping)where
Self: Sized,
Rewrites the plan node according to the schema change of its input nodes during rewriting.
This function can be used to implement prune_col
or
logical_rewrite_for_stream
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.