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§
Sourcetype Instruction
type Instruction
The instruction type.
Required Methods§
Sourcefn run(&mut self, instructions: &[Self::Instruction; 256]) -> Self::Action
fn run(&mut self, instructions: &[Self::Instruction; 256]) -> Self::Action
Runs the interpreter with the given instruction table.