Trait Processor

Source
pub trait Processor<Byte, Pc, IOPort, IOItem> {
    // Required methods
    fn next(&mut self) -> Byte;
    fn at_pc_plus(&self, offset: u16) -> Byte;
    fn pc(&self) -> Pc;
    fn run_command<T, U>(&mut self, output: T, input: U) -> ProcessorContinue
       where T: Fn(IOPort, IOItem),
             U: Fn(IOPort) -> IOItem;
    fn load_executable(&mut self, executable: &Executable) -> Result<(), String>;
}

Required Methods§

Source

fn next(&mut self) -> Byte

Source

fn at_pc_plus(&self, offset: u16) -> Byte

Source

fn pc(&self) -> Pc

Source

fn run_command<T, U>(&mut self, output: T, input: U) -> ProcessorContinue
where T: Fn(IOPort, IOItem), U: Fn(IOPort) -> IOItem,

Source

fn load_executable(&mut self, executable: &Executable) -> Result<(), String>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§