pub struct InterpreterState<'a> {
pub current_instruction: usize,
pub instruction: Instruction,
pub current_pointer: usize,
pub memory: &'a VecDeque<u8>,
}Fields§
§current_instruction: usizeindex in the program of the instruction that was just run Note that this instruction is computed after precompilation and so it may not match the program file exactly
instruction: InstructionThe instruction that was just run
current_pointer: usizeThe current “pointer” value that represents the current cell in memory
memory: &'a VecDeque<u8>The entire memory buffer (read-only)
Trait Implementations§
Source§impl<'a> Clone for InterpreterState<'a>
impl<'a> Clone for InterpreterState<'a>
Source§fn clone(&self) -> InterpreterState<'a>
fn clone(&self) -> InterpreterState<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InterpreterState<'a>
impl<'a> Debug for InterpreterState<'a>
Source§impl<'a> PartialEq for InterpreterState<'a>
impl<'a> PartialEq for InterpreterState<'a>
impl<'a> Eq for InterpreterState<'a>
impl<'a> StructuralPartialEq for InterpreterState<'a>
Auto Trait Implementations§
impl<'a> Freeze for InterpreterState<'a>
impl<'a> RefUnwindSafe for InterpreterState<'a>
impl<'a> Send for InterpreterState<'a>
impl<'a> Sync for InterpreterState<'a>
impl<'a> Unpin for InterpreterState<'a>
impl<'a> UnwindSafe for InterpreterState<'a>
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