Trait Interp

Source
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§

Source

type Instruction

The instruction type.

Source

type Action

The action type returned after execution.

Required Methods§

Source

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

Runs the interpreter with the given instruction table.

Implementors§