Struct cambridge_asm::exec::Memory
source · [−]#[repr(transparent)]pub struct Memory(_);
Implementations
sourceimpl Memory
impl Memory
pub fn new(mem: BTreeMap<usize, MemEntry>) -> Self
pub fn iter(&self) -> Iter<'_, usize, MemEntry>
pub fn get(&self, loc: &usize) -> Result<usize, PasmError>
pub fn get_address(&self, loc: &usize) -> Result<usize, PasmError>
pub fn write(&mut self, loc: &usize, dat: usize) -> PasmResult
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more