Trait Interp

pub trait Interp {
    type Instruction;
    type Action;

    // Required method
    fn run(&mut self, instructions: &[Self::Instruction; 256]) -> Self::Action;
}
Expand description

Trait for interpreter execution.

Required Associated Types§

type Instruction

The instruction type.

type Action

The action type returned after execution.

Required Methods§

fn run(&mut self, instructions: &[Self::Instruction; 256]) -> Self::Action

Runs the interpreter with the given instruction table.

Implementors§