pub trait MemoryAccess {
    type Memory: ZxMemory;
    type MemoryExt: MemoryExtension;

    fn memory_ext_ref(&self) -> &Self::MemoryExt;
    fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt;
    fn memory_ref(&self) -> &Self::Memory;
    fn memory_mut(&mut self) -> &mut Self::Memory;
    fn memory_with_ext_mut(
        &mut self
    ) -> (&mut Self::Memory, &mut Self::MemoryExt); }
Expand description

A trait for directly accessing an emulated memory implementation and memory extensions.

Required Associated Types§

Required Methods§

Returns a read-only reference to the memory extension.

Returns a mutable reference to the memory extension.

Returns a reference to the memory.

Returns a mutable reference to the memory.

Returns mutable references to both the memory and the memory extension.

Implementors§