pub enum DataKind<'a> {
Passive,
Active {
memory: Index<'a>,
offset: Expression<'a>,
},
}
Expand description
Different kinds of data segments, either passive or active.
Variants
Passive
A passive data segment which isn’t associated with a memory and is referenced from various instructions.
Active
Fields
memory: Index<'a>
The memory that this Data
will be associated with.
offset: Expression<'a>
Initial offset to load this data segment at
An active data segment which is associated and loaded into a particular memory on module instantiation.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for DataKind<'a>
impl<'a> Send for DataKind<'a>
impl<'a> Sync for DataKind<'a>
impl<'a> Unpin for DataKind<'a>
impl<'a> UnwindSafe for DataKind<'a>
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