Trait polars_plan::plans::visitor::RewritingVisitor
source · pub trait RewritingVisitor {
type Node;
type Arena;
// Required method
fn mutate(
&mut self,
node: Self::Node,
_arena: &mut Self::Arena,
) -> PolarsResult<Self::Node>;
// Provided method
fn pre_visit(
&mut self,
_node: &Self::Node,
_arena: &mut Self::Arena,
) -> PolarsResult<RewriteRecursion> { ... }
}
Required Associated Types§
Required Methods§
fn mutate( &mut self, node: Self::Node, _arena: &mut Self::Arena, ) -> PolarsResult<Self::Node>
Provided Methods§
sourcefn pre_visit(
&mut self,
_node: &Self::Node,
_arena: &mut Self::Arena,
) -> PolarsResult<RewriteRecursion>
fn pre_visit( &mut self, _node: &Self::Node, _arena: &mut Self::Arena, ) -> PolarsResult<RewriteRecursion>
Invoked before any children of node
are visited.