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: RegsGeneral purpose registers
ext_state: ExtStateExtended 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: MemoryMemory
instruction_fetcher: IFInstruction fetcher
system_instruction_handler: InstructionHandlerSystem instruction handler
Trait Implementations§
Auto Trait Implementations§
impl<Regs, ExtState, Memory, IF, InstructionHandler> Freeze for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
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>
impl<Regs, ExtState, Memory, IF, InstructionHandler> Sync for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
impl<Regs, ExtState, Memory, IF, InstructionHandler> Unpin for BasicInterpreterState<Regs, ExtState, Memory, IF, InstructionHandler>
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> 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