pub enum Trap {
Panic(String),
Unwind {
frame: u64,
kind: u8,
value: Value,
},
Exit(i32),
}Expand description
A recoverable interruption of execution.
Variants§
Panic(String)
A panic: unwinds the current thread.
Unwind
Non-local control flow (break/return out of a block) unwinding to an interpreter frame.
Exit(i32)
exit(code).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Trap
impl RefUnwindSafe for Trap
impl Send for Trap
impl Sync for Trap
impl Unpin for Trap
impl UnsafeUnpin for Trap
impl UnwindSafe for Trap
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