Enum wast::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
Fields
is_32: bool
Whether or not this will be creating a 32-bit memory
The data of this memory, starting from 0, explicitly listed
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more