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
An active data segment which is associated and loaded into a particular memory on module instantiation.
Fields
§
offset: Expression<'a>Initial offset to load this data segment at
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DataKind<'a>
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§
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