pub enum Control<Trap> {
NoAction,
Continue(usize),
Exit(ExitResult),
Jump(usize),
Trap(Box<Trap>),
}
Expand description
Control state.
Variants§
NoAction
No action.
Continue(usize)
Continue the execution, increase the PC by N.
Exit(ExitResult)
Exit the execution.
Jump(usize)
Jump to the specified PC.
Trap(Box<Trap>)
Trapping the execution with the possibility to resume.
Trait Implementations§
impl<Trap: Eq> Eq for Control<Trap>
impl<Trap> StructuralPartialEq for Control<Trap>
Auto Trait Implementations§
impl<Trap> Freeze for Control<Trap>
impl<Trap> RefUnwindSafe for Control<Trap>where
Trap: RefUnwindSafe,
impl<Trap> Send for Control<Trap>where
Trap: Send,
impl<Trap> Sync for Control<Trap>where
Trap: Sync,
impl<Trap> Unpin for Control<Trap>
impl<Trap> UnwindSafe for Control<Trap>where
Trap: UnwindSafe,
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
Source§impl<T> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T
to get Rest
.