pub enum DataMode {
Passive,
Active(MemoryIndex, Expression),
}Expand description
Like element segments, data segments have a mode that identifies them as either passive or active.
Variants§
Passive
A passive data segment’s contents can be copied into a memory using the 𝗆𝖾𝗆𝗈𝗋𝗒.𝗂𝗇𝗂𝗍 instruction.
Active(MemoryIndex, Expression)
An active data segment copies its contents into a memory during instantiation, as specified by a memory index and a constant expression defining an offset into that memory.
Trait Implementations§
impl StructuralPartialEq for DataMode
Auto Trait Implementations§
impl Freeze for DataMode
impl RefUnwindSafe for DataMode
impl Send for DataMode
impl Sync for DataMode
impl Unpin for DataMode
impl UnwindSafe for DataMode
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