Struct wasmtime_environ::StaticMemoryInitializer
source · [−]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
sourceimpl Clone for StaticMemoryInitializer
impl Clone for StaticMemoryInitializer
sourcefn clone(&self) -> StaticMemoryInitializer
fn clone(&self) -> StaticMemoryInitializer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StaticMemoryInitializer
impl Debug for StaticMemoryInitializer
sourceimpl<'de> Deserialize<'de> for StaticMemoryInitializer
impl<'de> Deserialize<'de> for StaticMemoryInitializer
sourcefn 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
sourceimpl Serialize for StaticMemoryInitializer
impl Serialize for StaticMemoryInitializer
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more