pub enum StackAction {
Panic(Box<(VVal, Vec<(Option<SynPos>, VVal)>)>),
Return(Box<(VVal, VVal)>),
Break(Box<VVal>),
Next,
}
Expand description
Encodes all kinds of jumps up the call stack, like break
and next
in Loops.
As WLambda is not using a VM, it uses return values of the closure call tree to handle jumping up the stack.
Variants§
Implementations§
Source§impl StackAction
impl StackAction
Trait Implementations§
Source§impl Clone for StackAction
impl Clone for StackAction
Source§fn clone(&self) -> StackAction
fn clone(&self) -> StackAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StackAction
impl Debug for StackAction
Source§impl Display for StackAction
impl Display for StackAction
Source§impl From<VVal> for StackAction
impl From<VVal> for StackAction
Source§fn from(v: VVal) -> StackAction
fn from(v: VVal) -> StackAction
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StackAction
impl !RefUnwindSafe for StackAction
impl !Send for StackAction
impl !Sync for StackAction
impl Unpin for StackAction
impl !UnwindSafe for StackAction
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