[][src]Trait spectrusty::chip::MemoryAccess

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); }

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

Associated Types

Loading content...

Required methods

fn memory_ext_ref(&self) -> &Self::MemoryExt

Returns a read-only reference to the memory extension.

fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt

Returns a mutable reference to the memory extension.

fn memory_ref(&self) -> &Self::Memory

Returns a reference to the memory.

fn memory_mut(&mut self) -> &mut Self::Memory

Returns a mutable reference to the memory.

fn memory_with_ext_mut(&mut self) -> (&mut Self::Memory, &mut Self::MemoryExt)

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

Loading content...

Implementors

impl<B, X> MemoryAccess for Ula3<B, X> where
    X: MemoryExtension
[src]

type Memory = Memory128kPlus

type MemoryExt = X

impl<B, X> MemoryAccess for Ula128<B, X> where
    X: MemoryExtension
[src]

type Memory = Memory128k

type MemoryExt = X

impl<M, B, X, V> MemoryAccess for Scld<M, B, X, V> where
    M: PagedMemory8k,
    X: MemoryExtension
[src]

type Memory = M

type MemoryExt = X

impl<M, B, X, V> MemoryAccess for Ula<M, B, X, V> where
    M: ZxMemory,
    X: MemoryExtension
[src]

type Memory = M

type MemoryExt = X

impl<U> MemoryAccess for UlaPlus<U> where
    U: Video + MemoryAccess
[src]

type Memory = U::Memory

type MemoryExt = U::MemoryExt

Loading content...