Enum wlambda::vval::StackAction
source · [−]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
Panic(Box<(VVal, Vec<(Option<SynPos>, VVal)>)>)
Return(Box<(VVal, VVal)>)
Break(Box<VVal>)
Next
Implementations
sourceimpl StackAction
impl StackAction
Trait Implementations
sourceimpl Clone for StackAction
impl Clone for StackAction
sourcefn clone(&self) -> StackAction
fn clone(&self) -> StackAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StackAction
impl Debug for StackAction
sourceimpl Display for StackAction
impl Display for StackAction
sourceimpl From<VVal> for StackAction
impl From<VVal> for StackAction
sourcefn from(v: VVal) -> StackAction
fn from(v: VVal) -> StackAction
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for StackAction
impl !Send for StackAction
impl !Sync for StackAction
impl Unpin for StackAction
impl !UnwindSafe for StackAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more