pub struct MemoryInitializer<'a> {
pub memory_index: MemoryIndex,
pub offset: ConstExpr,
pub data: &'a [u8],
}Expand description
A WebAssembly linear memory initializer.
Fields§
§memory_index: MemoryIndexThe index of a linear memory to initialize.
offset: ConstExprThe base offset to start this segment at.
data: &'a [u8]The range of the data to write within the linear memory.
This range indexes into a separately stored data section which will be provided with the compiled module’s code as well.
Trait Implementations§
Source§impl<'a> Clone for MemoryInitializer<'a>
impl<'a> Clone for MemoryInitializer<'a>
Source§fn clone(&self) -> MemoryInitializer<'a>
fn clone(&self) -> MemoryInitializer<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for MemoryInitializer<'a>
impl<'a> RefUnwindSafe for MemoryInitializer<'a>
impl<'a> Send for MemoryInitializer<'a>
impl<'a> Sync for MemoryInitializer<'a>
impl<'a> Unpin for MemoryInitializer<'a>
impl<'a> UnsafeUnpin for MemoryInitializer<'a>
impl<'a> UnwindSafe for MemoryInitializer<'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