Enum interpreter::TraversalBreak
source · pub enum TraversalBreak {
ReturnValue(Rc<Value>),
Error(Error),
}
Expand description
Represents a break in traversal of the AST.
The reasons we would want to stop traversal are:
- We encountered an error.
- The AST contains a return statement, and we need to stop traversal of the current branch and return the value back to the start of that branch.
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for TraversalBreak
impl !Send for TraversalBreak
impl !Sync for TraversalBreak
impl Unpin for TraversalBreak
impl !UnwindSafe for TraversalBreak
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