Trait layout_2013::traversal::InorderFlowTraversal
source · pub trait InorderFlowTraversal {
// Required method
fn process(&mut self, flow: &mut dyn Flow, level: u32);
// Provided methods
fn should_process_subtree(&mut self, _flow: &mut dyn Flow) -> bool { ... }
fn traverse(&mut self, flow: &mut dyn Flow, level: u32) { ... }
}
Expand description
An in-order (sequential only) traversal.
Required Methods§
Provided Methods§
sourcefn should_process_subtree(&mut self, _flow: &mut dyn Flow) -> bool
fn should_process_subtree(&mut self, _flow: &mut dyn Flow) -> bool
Returns true if this node should be processed and false if neither this node nor its descendants should be processed.