pub enum DataKind {
Active {
memory: MemoryId,
offset: ConstExpr,
},
Passive,
}Expand description
The kind of data segment: passive or active.
Variants§
Active
An active data segment that is automatically initialized at some address in a static memory.
Fields
Passive
A passive data segment that must be manually initialized at a dynamic
address via the memory.init instruction (perhaps multiple times in
multiple different memories) and then manually freed when it’s no longer
needed via the data.drop instruction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataKind
impl RefUnwindSafe for DataKind
impl Send for DataKind
impl Sync for DataKind
impl Unpin for DataKind
impl UnwindSafe for DataKind
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