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
sourceimpl Action
impl Action
pub fn change(control: Control) -> Self
pub fn static_change(control: StaticControl) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for Action
impl !Send for Action
impl !Sync for Action
impl Unpin for Action
impl !UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more