MemoryExtension

Trait MemoryExtension 

Source
pub trait MemoryExtension: Debug {
    // Provided method
    fn read_opcode<M: ZxMemory>(&mut self, pc: u16, memory: &mut M) -> u8 { ... }
}
Expand description

An interface for memory paging extensions of ZxMemory.

Provide an implementation as the associated type crate::chip::MemoryAccess::MemoryExt.

Provided Methods§

Source

fn read_opcode<M: ZxMemory>(&mut self, pc: u16, memory: &mut M) -> u8

Read op-code from the given memory at the given pc address, optionally altering provided memory.

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§