pub enum DataKind {
Active(ActiveData),
Passive,
}
Expand description
The kind of data segment: passive or active.
Variants§
Active(ActiveData)
An active data segment that is automatically initialized at some address in a static memory.
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 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