Enum wasmtime_environ::MemoryStyle
source · pub enum MemoryStyle {
Dynamic {
reserve: u64,
},
Static {
bound: u64,
},
}
Expand description
Implementation styles for WebAssembly linear memory.
Variants§
Implementations§
source§impl 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§
source§impl Clone for MemoryStyle
impl Clone for MemoryStyle
source§fn clone(&self) -> MemoryStyle
fn clone(&self) -> MemoryStyle
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 MemoryStyle
impl Debug for MemoryStyle
source§impl<'de> Deserialize<'de> for MemoryStyle
impl<'de> Deserialize<'de> for MemoryStyle
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
source§impl Hash for MemoryStyle
impl Hash for MemoryStyle
Auto Trait Implementations§
impl Freeze for MemoryStyle
impl RefUnwindSafe for MemoryStyle
impl Send for MemoryStyle
impl Sync for MemoryStyle
impl Unpin for MemoryStyle
impl UnwindSafe for MemoryStyle
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)