pub enum UnwindAction {
Null,
RestoreAccum(VVal, VVal),
RestoreSP(usize),
ClearLocals(usize, usize),
RestoreSelf(VVal),
RestoreLoopInfo(LoopInfo),
RestoreIter(Option<Rc<RefCell<VValIter>>>),
FunctionCall(usize, usize, usize),
}
Expand description
Describes an action that needs to be done when returning from a function or somehow jumps unpredictably around the VM prog.
Variants§
Null
RestoreAccum(VVal, VVal)
RestoreSP(usize)
ClearLocals(usize, usize)
RestoreSelf(VVal)
RestoreLoopInfo(LoopInfo)
RestoreIter(Option<Rc<RefCell<VValIter>>>)
FunctionCall(usize, usize, usize)
Trait Implementations§
Source§impl Clone for UnwindAction
impl Clone for UnwindAction
Source§fn clone(&self) -> UnwindAction
fn clone(&self) -> UnwindAction
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for UnwindAction
impl !RefUnwindSafe for UnwindAction
impl !Send for UnwindAction
impl !Sync for UnwindAction
impl Unpin for UnwindAction
impl !UnwindSafe for UnwindAction
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