Skip to main content

FetchInstructionResult

Enum FetchInstructionResult 

Source
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§

Source§

impl<I, Peeked: Debug> Debug for FetchInstructionResult<I, Peeked>
where I: Instruction + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<I, Peeked> Freeze for FetchInstructionResult<I, Peeked>
where Peeked: Freeze, ExecutionError<<<I as Instruction>::Reg as Register>::Type>: Freeze,

§

impl<I, Peeked> RefUnwindSafe for FetchInstructionResult<I, Peeked>

§

impl<I, Peeked> Send for FetchInstructionResult<I, Peeked>
where Peeked: Send, ExecutionError<<<I as Instruction>::Reg as Register>::Type>: Send,

§

impl<I, Peeked> Sync for FetchInstructionResult<I, Peeked>
where Peeked: Sync, ExecutionError<<<I as Instruction>::Reg as Register>::Type>: Sync,

§

impl<I, Peeked> Unpin for FetchInstructionResult<I, Peeked>
where Peeked: Unpin, ExecutionError<<<I as Instruction>::Reg as Register>::Type>: Unpin,

§

impl<I, Peeked> UnsafeUnpin for FetchInstructionResult<I, Peeked>

§

impl<I, Peeked> UnwindSafe for FetchInstructionResult<I, Peeked>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.