pub struct StaticMemoryInitializer {
pub offset: u64,
pub data: Range<u32>,
}
Expand description
Similar to the above MemoryInitializer
but only used when memory
initializers are statically known to be valid.
Fields§
§offset: u64
The 64-bit offset, in bytes, of where this initializer starts.
data: Range<u32>
The range of data to write at offset
, where these indices are indexes
into the compiled wasm module’s data section.
Trait Implementations§
source§impl Clone for StaticMemoryInitializer
impl Clone for StaticMemoryInitializer
source§fn clone(&self) -> StaticMemoryInitializer
fn clone(&self) -> StaticMemoryInitializer
Returns a copy 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 StaticMemoryInitializer
impl Debug for StaticMemoryInitializer
source§impl<'de> Deserialize<'de> for StaticMemoryInitializer
impl<'de> Deserialize<'de> for StaticMemoryInitializer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StaticMemoryInitializer
impl Send for StaticMemoryInitializer
impl Sync for StaticMemoryInitializer
impl Unpin for StaticMemoryInitializer
impl UnwindSafe for StaticMemoryInitializer
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