Struct wasmtime_environ::MemoryPlan 
source · pub struct MemoryPlan {
    pub memory: Memory,
    pub style: MemoryStyle,
    pub pre_guard_size: u64,
    pub offset_guard_size: u64,
}Expand description
A WebAssembly linear memory description along with our chosen style for implementing it.
Fields§
§memory: MemoryThe WebAssembly linear memory description.
style: MemoryStyleOur chosen implementation style.
pre_guard_size: u64Chosen size of a guard page before the linear memory allocation.
offset_guard_size: u64Our 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 moresource§impl Debug for MemoryPlan
 
impl Debug for MemoryPlan
source§impl<'de> Deserialize<'de> for MemoryPlan
 
impl<'de> Deserialize<'de> for MemoryPlan
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