#[repr(C)]pub struct LocalMemory {
pub base: *mut u8,
pub bound: usize,
pub memory: *mut (),
}Expand description
Definition of a memory used by the VM.
Fields§
§base: *mut u8Pointer to the bottom of this linear memory.
bound: usizeCurrent size of this linear memory in bytes.
memory: *mut ()The actual memory that this represents.
This is either *mut DynamicMemory, *mut StaticMemory,
or *mut SharedStaticMemory.
Implementations§
Source§impl LocalMemory
impl LocalMemory
Sourcepub const fn offset_base() -> u8
pub const fn offset_base() -> u8
Offset to the base field.
Sourcepub const fn offset_bound() -> u8
pub const fn offset_bound() -> u8
Offset to the bound field.
Trait Implementations§
Source§impl Clone for LocalMemory
impl Clone for LocalMemory
Source§fn clone(&self) -> LocalMemory
fn clone(&self) -> LocalMemory
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalMemory
impl Debug for LocalMemory
impl Copy for LocalMemory
impl Send for LocalMemory
Auto Trait Implementations§
impl Freeze for LocalMemory
impl RefUnwindSafe for LocalMemory
impl !Sync for LocalMemory
impl Unpin for LocalMemory
impl UnwindSafe for LocalMemory
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