Enum wast::core::MemoryKind
source · pub enum MemoryKind<'a> {
Import {
import: InlineImport<'a>,
ty: MemoryType,
},
Normal(MemoryType),
Inline {
is_32: bool,
data: Vec<DataVal<'a>>,
},
}Expand description
Different syntactical ways a memory can be defined in a module.
Variants§
Import
This memory is actually an inlined import definition.
Normal(MemoryType)
A typical memory definition which simply says the limits of the memory
Inline
The data of this memory, starting from 0, explicitly listed
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MemoryKind<'a>
impl<'a> RefUnwindSafe for MemoryKind<'a>
impl<'a> Send for MemoryKind<'a>
impl<'a> Sync for MemoryKind<'a>
impl<'a> Unpin for MemoryKind<'a>
impl<'a> UnwindSafe for MemoryKind<'a>
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