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

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

The instruction that was just run

The current "pointer" value that represents the current cell in memory

The entire memory buffer (read-only)

Trait Implementations

impl<'a> Debug for InterpreterState<'a>
[src]

Formats the value using the given formatter.

impl<'a> Clone for InterpreterState<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for InterpreterState<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Eq for InterpreterState<'a>
[src]