pub enum RegDataMode {
Active {
memory: MemIdx,
offset: Vec<RegConstInstr>,
},
Passive,
}Expand description
Instantiation behavior of a data segment.
Variants§
Active
Written into memory at instantiation, then dropped.
Passive
Retained for memory.init until dropped.
Trait Implementations§
Source§impl Clone for RegDataMode
impl Clone for RegDataMode
Source§fn clone(&self) -> RegDataMode
fn clone(&self) -> RegDataMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegDataMode
impl Debug for RegDataMode
impl Eq for RegDataMode
Source§impl PartialEq for RegDataMode
impl PartialEq for RegDataMode
impl StructuralPartialEq for RegDataMode
Auto Trait Implementations§
impl Freeze for RegDataMode
impl RefUnwindSafe for RegDataMode
impl Send for RegDataMode
impl Sync for RegDataMode
impl Unpin for RegDataMode
impl UnsafeUnpin for RegDataMode
impl UnwindSafe for RegDataMode
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