[][src]Trait spectrusty_core::chip::MemoryAccess

pub trait MemoryAccess {
    type Memory: ZxMemory;
    type MemoryExt: MemoryExtension;
    pub fn memory_ext_ref(&self) -> &Self::MemoryExt;
pub fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt;
pub fn memory_ref(&self) -> &Self::Memory;
pub fn memory_mut(&mut self) -> &mut Self::Memory;
pub fn memory_with_ext_mut(
        &mut self
    ) -> (&mut Self::Memory, &mut Self::MemoryExt); }

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

Associated Types

Loading content...

Required methods

pub fn memory_ext_ref(&self) -> &Self::MemoryExt[src]

Returns a read-only reference to the memory extension.

pub fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt[src]

Returns a mutable reference to the memory extension.

pub fn memory_ref(&self) -> &Self::Memory[src]

Returns a reference to the memory.

pub fn memory_mut(&mut self) -> &mut Self::Memory[src]

Returns a mutable reference to the memory.

pub fn memory_with_ext_mut(
    &mut self
) -> (&mut Self::Memory, &mut Self::MemoryExt)
[src]

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

Loading content...

Implementors

Loading content...