pub trait VisitPlan: Visit<PlanRef> {
// Required method
fn visited<F>(&mut self, plan: &PlanRef, f: F)
where F: FnMut(&mut Self);
// Provided method
fn dag_visit(&mut self, plan: &PlanRef) { ... }
}
Expand description
A more sophisticated Visit
taking into account of the DAG structure of PlanRef
.
In addition to Visit
, one have to specify visited
to store and report visited LogicalShare
nodes,
and the dag_visit
function will take care to only visit every LogicalShare
nodes once.
See also EndoPlan
.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.