pub struct ContextMemory<'a> { /* private fields */ }Expand description
A type representing the memory of the emulated program.
This is used to read and write to the memory in precompile impls.
Implementations§
Source§impl<'a> ContextMemory<'a>
impl<'a> ContextMemory<'a>
pub const fn tracing(&self) -> bool
Sourcepub fn mr_slice(
&self,
addr: u64,
len: usize,
) -> impl IntoIterator<Item = &u64> + Clone
pub fn mr_slice( &self, addr: u64, len: usize, ) -> impl IntoIterator<Item = &u64> + Clone
Read a slice of u64 from the memory.
pub fn mr_slice_unsafe( &self, addr: u64, len: usize, ) -> impl IntoIterator<Item = &u64> + Clone
pub fn mr_slice_no_trace( &self, addr: u64, len: usize, ) -> impl IntoIterator<Item = &u64> + Clone
Auto Trait Implementations§
impl<'a> Freeze for ContextMemory<'a>
impl<'a> RefUnwindSafe for ContextMemory<'a>
impl<'a> !Send for ContextMemory<'a>
impl<'a> !Sync for ContextMemory<'a>
impl<'a> Unpin for ContextMemory<'a>
impl<'a> UnsafeUnpin for ContextMemory<'a>
impl<'a> !UnwindSafe for ContextMemory<'a>
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