Struct wasmtime_environ::MemoryPlan
source · pub struct MemoryPlan {
pub memory: Memory,
pub style: MemoryStyle,
pub offset_guard_size: u64,
}
Expand description
A WebAssembly linear memory description along with our chosen style for implementing it.
Fields§
§memory: Memory
The WebAssembly linear memory description.
style: MemoryStyle
Our chosen implementation style.
offset_guard_size: u64
Our chosen offset-guard size.
Implementations§
source§impl MemoryPlan
impl MemoryPlan
sourcepub fn for_memory(memory: Memory, tunables: &Tunables) -> Self
pub fn for_memory(memory: Memory, tunables: &Tunables) -> Self
Draw up a plan for implementing a Memory
.
Trait Implementations§
source§impl Clone for MemoryPlan
impl Clone for MemoryPlan
source§fn clone(&self) -> MemoryPlan
fn clone(&self) -> MemoryPlan
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 more