Enum wasmtime_environ::MemoryStyle
source · [−]Expand description
Implementation styles for WebAssembly linear memory.
Variants
Dynamic
Fields
reserve: u64
Extra space to reserve when a memory must be moved due to growth.
The actual memory can be resized and moved.
Static
Fields
bound: u64
The number of mapped and unmapped pages.
Address space is allocated up front.
Implementations
sourceimpl MemoryStyle
impl MemoryStyle
sourcepub fn for_memory(memory: Memory, tunables: &Tunables) -> (Self, u64)
pub fn for_memory(memory: Memory, tunables: &Tunables) -> (Self, u64)
Decide on an implementation style for the given Memory
.
Trait Implementations
sourceimpl Clone for MemoryStyle
impl Clone for MemoryStyle
sourcefn clone(&self) -> MemoryStyle
fn clone(&self) -> MemoryStyle
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MemoryStyle
impl Debug for MemoryStyle
sourceimpl<'de> Deserialize<'de> for MemoryStyle
impl<'de> Deserialize<'de> for MemoryStyle
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 Hash for MemoryStyle
impl Hash for MemoryStyle
sourceimpl Serialize for MemoryStyle
impl Serialize for MemoryStyle
Auto Trait Implementations
impl RefUnwindSafe for MemoryStyle
impl Send for MemoryStyle
impl Sync for MemoryStyle
impl Unpin for MemoryStyle
impl UnwindSafe for MemoryStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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