pub enum FetchInstructionResult<I, Peeked = I>where
I: Instruction,{
Instruction(Peeked),
Continue,
Break,
Err(ExecutionError<<<I as Instruction>::Reg as Register>::Type>),
}Expand description
Result of InstructionFetcher::fetch_instruction() and
InstructionFetcher::peek_instruction() calls.
Peeked is the instruction itself when fetching, and whatever
InstructionFetcher::Peeked is when peeking.
Variants§
Instruction(Peeked)
Instruction to execute
Continue
Nothing to execute here, carry on from wherever the program counter now points
Break
Stop execution
Err(ExecutionError<<<I as Instruction>::Reg as Register>::Type>)
Fetching failed
Trait Implementations§
Auto Trait Implementations§
impl<I, Peeked> Freeze for FetchInstructionResult<I, Peeked>
impl<I, Peeked> RefUnwindSafe for FetchInstructionResult<I, Peeked>where
Peeked: RefUnwindSafe,
ExecutionError<<<I as Instruction>::Reg as Register>::Type>: RefUnwindSafe,
impl<I, Peeked> Send for FetchInstructionResult<I, Peeked>
impl<I, Peeked> Sync for FetchInstructionResult<I, Peeked>
impl<I, Peeked> Unpin for FetchInstructionResult<I, Peeked>
impl<I, Peeked> UnsafeUnpin for FetchInstructionResult<I, Peeked>where
Peeked: UnsafeUnpin,
ExecutionError<<<I as Instruction>::Reg as Register>::Type>: UnsafeUnpin,
impl<I, Peeked> UnwindSafe for FetchInstructionResult<I, Peeked>
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