Skip to main content

VisitFlow

Type Alias VisitFlow 

Source
pub type VisitFlow = ControlFlow<VisitBreak, VisitAction>;
Expand description

Convenience alias for the visitor control-flow type.

Aliased Type§

pub enum VisitFlow {
    Continue(VisitAction),
    Break(VisitBreak),
}

Variants§

§1.55.0

Continue(VisitAction)

Move on to the next phase of the operation as normal.

§1.55.0

Break(VisitBreak)

Exit the operation without running subsequent phases.

Trait Implementations§

Source§

impl VisitFlowExt for VisitFlow

Source§

const DESCEND: VisitFlow = _

Continue traversal and recurse into children.
Source§

const SKIP_CHILDREN: VisitFlow = _

Continue traversal but skip visiting children (exit_* still fires).
Source§

const STOP: VisitFlow = _

Stop traversal immediately.