pub enum Flow {
Continue,
SkipChildren,
Stop,
}Expand description
What a Visitor tells walk to do after entering a node.
Returned from Visitor::enter to steer the traversal:
Continue— descend into this node’s children, then leave it.SkipChildren— do not descend, but still leave this node.Stop— abandon the whole walk now; no further node is entered or left.
§Examples
use ast_lang::Flow;
// The default for a visitor that wants the full tree.
assert_eq!(Flow::default(), Flow::Continue);Variants§
Continue
Descend into the node’s children, then call Visitor::leave for it.
SkipChildren
Skip the node’s children but still call Visitor::leave for it.
Stop
Stop the entire walk immediately; no further enter or leave runs.
Trait Implementations§
impl Copy for Flow
impl Eq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Freeze for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more