[−][src]Trait spectrusty::chip::MemoryAccess
A trait for directly accessing an emulated memory implementation and memory extensions.
Associated Types
type Memory: ZxMemory
type MemoryExt: MemoryExtension
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.
Implementors
impl<B, X> MemoryAccess for Ula3<B, X> where
X: MemoryExtension,
[src]
X: MemoryExtension,
type Memory = Memory128kPlus
type MemoryExt = X
fn memory_ext_ref(&self) -> &Self::MemoryExt
[src]
fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt
[src]
fn memory_mut(&mut self) -> &mut Self::Memory
[src]
fn memory_ref(&self) -> &Self::Memory
[src]
fn memory_with_ext_mut(&mut self) -> (&mut Self::Memory, &mut Self::MemoryExt)
[src]
impl<B, X> MemoryAccess for Ula128<B, X> where
X: MemoryExtension,
[src]
X: MemoryExtension,
type Memory = Memory128k
type MemoryExt = X
fn memory_ext_ref(&self) -> &Self::MemoryExt
[src]
fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt
[src]
fn memory_mut(&mut self) -> &mut Self::Memory
[src]
fn memory_ref(&self) -> &Self::Memory
[src]
fn memory_with_ext_mut(&mut self) -> (&mut Self::Memory, &mut Self::MemoryExt)
[src]
impl<M, B, X, V> MemoryAccess for Scld<M, B, X, V> where
M: PagedMemory8k,
X: MemoryExtension,
[src]
M: PagedMemory8k,
X: MemoryExtension,
type Memory = M
type MemoryExt = X
fn memory_ext_ref(&self) -> &Self::MemoryExt
[src]
fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt
[src]
fn memory_mut(&mut self) -> &mut Self::Memory
[src]
fn memory_ref(&self) -> &Self::Memory
[src]
fn memory_with_ext_mut(&mut self) -> (&mut Self::Memory, &mut Self::MemoryExt)
[src]
impl<M, B, X, V> MemoryAccess for Ula<M, B, X, V> where
M: ZxMemory,
X: MemoryExtension,
[src]
M: ZxMemory,
X: MemoryExtension,
type Memory = M
type MemoryExt = X
fn memory_ext_ref(&self) -> &Self::MemoryExt
[src]
fn memory_ext_mut(&mut self) -> &mut Self::MemoryExt
[src]
fn memory_mut(&mut self) -> &mut Self::Memory
[src]
fn memory_ref(&self) -> &Self::Memory
[src]
fn memory_with_ext_mut(&mut self) -> (&mut Self::Memory, &mut Self::MemoryExt)
[src]
impl<U> MemoryAccess for UlaPlus<U> where
U: Video + MemoryAccess,
[src]
U: Video + MemoryAccess,