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
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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 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