pub struct Memory { /* private fields */ }Implementations§
Source§impl Memory
impl Memory
Sourcepub fn read(&self, ptr: MemoryAddress) -> MemoryValue
pub fn read(&self, ptr: MemoryAddress) -> MemoryValue
Gets the value at pointer
pub fn read_ref(&self, ptr: MemoryAddress) -> MemoryAddress
pub fn read_slice(&self, addr: MemoryAddress, len: usize) -> &[MemoryValue]
Sourcepub fn write(&mut self, ptr: MemoryAddress, value: MemoryValue)
pub fn write(&mut self, ptr: MemoryAddress, value: MemoryValue)
Sets the value at pointer ptr to value
Sourcepub fn write_slice(&mut self, ptr: MemoryAddress, values: &[MemoryValue])
pub fn write_slice(&mut self, ptr: MemoryAddress, values: &[MemoryValue])
Sets the values after pointer ptr to values
Sourcepub fn values(&self) -> &[MemoryValue]
pub fn values(&self) -> &[MemoryValue]
Returns the values of the memory
Trait Implementations§
impl Eq for Memory
impl StructuralPartialEq for Memory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more