Enum som_interpreter_ast::invokable::Return
source · pub enum Return {
Local(Value),
NonLocal(Value, SOMRef<Frame>),
Exception(String),
Restart,
}
Expand description
Represents the kinds of possible returns from an invocation.
Variants§
Local(Value)
A local return, the value is for the immediate caller.
NonLocal(Value, SOMRef<Frame>)
A non-local return, the value is for the parent of the referenced stack frame.
Exception(String)
An exception, expected to bubble all the way up.
Restart
A request to restart execution from the top of the closest body.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Return
impl !RefUnwindSafe for Return
impl !Send for Return
impl !Sync for Return
impl Unpin for Return
impl !UnwindSafe for Return
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