pub enum LocalMemoryAllocation {
Skip,
Lazy,
Eager,
}Expand description
How instantiation should prepare local memories declared by the module.
Variants§
Skip
The module’s local memories are unobservable and can be skipped entirely.
Lazy
The module’s local memories may be observed through exports, but can be delayed until first use.
Eager
The module’s local memories must be allocated during instantiation.
Trait Implementations§
Source§impl Clone for LocalMemoryAllocation
impl Clone for LocalMemoryAllocation
Source§fn clone(&self) -> LocalMemoryAllocation
fn clone(&self) -> LocalMemoryAllocation
Returns a duplicate 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 LocalMemoryAllocation
impl Debug for LocalMemoryAllocation
Source§impl Default for LocalMemoryAllocation
impl Default for LocalMemoryAllocation
Source§fn default() -> LocalMemoryAllocation
fn default() -> LocalMemoryAllocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocalMemoryAllocation
impl<'de> Deserialize<'de> for LocalMemoryAllocation
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 PartialEq for LocalMemoryAllocation
impl PartialEq for LocalMemoryAllocation
Source§impl Serialize for LocalMemoryAllocation
impl Serialize for LocalMemoryAllocation
impl Copy for LocalMemoryAllocation
impl Eq for LocalMemoryAllocation
impl StructuralPartialEq for LocalMemoryAllocation
Auto Trait Implementations§
impl Freeze for LocalMemoryAllocation
impl RefUnwindSafe for LocalMemoryAllocation
impl Send for LocalMemoryAllocation
impl Sync for LocalMemoryAllocation
impl Unpin for LocalMemoryAllocation
impl UnsafeUnpin for LocalMemoryAllocation
impl UnwindSafe for LocalMemoryAllocation
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