Skip to main content

BasicInterpreterState

Struct BasicInterpreterState 

Source
pub struct BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler> {
    pub regs: Regs,
    pub ext_state: ExtState,
    pub memory: Memory,
    pub instruction_fetcher: IF,
    pub system_instruction_handler: InstructionHandler,
}
Expand description

Basic interpreter state

Fields§

§regs: Regs

General purpose registers

§ext_state: ExtState

Extended state.

Extensions might use this to place additional constraints on ExtState to require additional registers or other resources. If no such extension is used, () can be used as a placeholder.

§memory: Memory

Memory

§instruction_fetcher: IF

Instruction fetcher

§system_instruction_handler: InstructionHandler

System instruction handler

Trait Implementations§

Source§

impl<Regs: Debug, ExtState: Debug, Memory: Debug, IF: Debug, InstructionHandler: Debug> Debug for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> Freeze for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: Freeze, ExtState: Freeze, Memory: Freeze, IF: Freeze, InstructionHandler: Freeze,

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> RefUnwindSafe for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: RefUnwindSafe, ExtState: RefUnwindSafe, Memory: RefUnwindSafe, IF: RefUnwindSafe, InstructionHandler: RefUnwindSafe,

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> Send for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: Send, ExtState: Send, Memory: Send, IF: Send, InstructionHandler: Send,

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> Sync for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: Sync, ExtState: Sync, Memory: Sync, IF: Sync, InstructionHandler: Sync,

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> Unpin for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: Unpin, ExtState: Unpin, Memory: Unpin, IF: Unpin, InstructionHandler: Unpin,

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> UnsafeUnpin for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: UnsafeUnpin, ExtState: UnsafeUnpin, Memory: UnsafeUnpin, IF: UnsafeUnpin, InstructionHandler: UnsafeUnpin,

§

impl<Regs, ExtState, Memory, IF, InstructionHandler> UnwindSafe for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
where Regs: UnwindSafe, ExtState: UnwindSafe, Memory: UnwindSafe, IF: UnwindSafe, InstructionHandler: UnwindSafe,

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 = Infallible

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.