Struct brainfuck::InterpreterState
[−]
[src]
pub struct InterpreterState<'a> { pub current_instruction: usize, pub instruction: Instruction, pub current_pointer: usize, pub memory: &'a VecDeque<u8>, }
Fields
current_instruction: usize
index 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: Instruction
The instruction that was just run
current_pointer: usize
The current "pointer" value that represents the current cell in memory
memory: &'a VecDeque<u8>
The entire memory buffer (read-only)
Trait Implementations
impl<'a> Debug for InterpreterState<'a>
[src]
impl<'a> Clone for InterpreterState<'a>
[src]
fn clone(&self) -> InterpreterState<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for InterpreterState<'a>
[src]
fn eq(&self, __arg_0: &InterpreterState<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InterpreterState<'a>) -> bool
This method tests for !=
.