pub struct Memory { /* private fields */ }
Expand description
Describes the full memory available for a machine.
Implementations§
Source§impl Memory
impl Memory
Sourcepub fn load(&self, address: Address) -> MemoryResult<Word>
pub fn load(&self, address: Address) -> MemoryResult<Word>
Sourcepub fn array(&self, area: Area) -> MemoryResult<Array>
pub fn array(&self, area: Area) -> MemoryResult<Array>
Sourcepub fn slice(&self, area: Area) -> MemoryResult<&[Word]>
pub fn slice(&self, area: Area) -> MemoryResult<&[Word]>
Sourcepub fn free(&mut self, sub_size: usize) -> MemoryResult<()>
pub fn free(&mut self, sub_size: usize) -> MemoryResult<()>
Free the memory from the specified size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more