pub enum Action {
    Continue,
    Stop,
    SkipChildren,
    Change(Box<Control>),
    StaticChange(Box<StaticControl>),
}
Expand description

Action performed at the end of visiting a control statement.

Variants

Continue

Continue traversal of control program.

Stop

Globally abort traversal of control program.

SkipChildren

Skips the traversal of this node’s children but continues traversing
the sibling nodes.

Change(Box<Control>)

Replace the current ast node with a new node. If performed using a start_* method, none of the newly created children will be visited.

StaticChange(Box<StaticControl>)

Replace the current StaticControl node with a new node If performed using a start_* method, none of the newly created children will be visited.

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.