pub trait Visitor {
type Node;
type Arena;
// Provided methods
fn pre_visit(
&mut self,
_node: &Self::Node,
_arena: &Self::Arena,
) -> PolarsResult<VisitRecursion> { ... }
fn post_visit(
&mut self,
_node: &Self::Node,
_arena: &Self::Arena,
) -> PolarsResult<VisitRecursion> { ... }
}
Required Associated Types§
Provided Methods§
Sourcefn pre_visit(
&mut self,
_node: &Self::Node,
_arena: &Self::Arena,
) -> PolarsResult<VisitRecursion>
fn pre_visit( &mut self, _node: &Self::Node, _arena: &Self::Arena, ) -> PolarsResult<VisitRecursion>
Invoked before any children of node
are visited.
Sourcefn post_visit(
&mut self,
_node: &Self::Node,
_arena: &Self::Arena,
) -> PolarsResult<VisitRecursion>
fn post_visit( &mut self, _node: &Self::Node, _arena: &Self::Arena, ) -> PolarsResult<VisitRecursion>
Invoked after all children of node
are visited. Default
implementation does nothing.