Enum wasm_encoder::ElementMode
source · pub enum ElementMode<'a> {
Passive,
Declared,
Active {
table: Option<u32>,
offset: &'a ConstExpr,
},
}
Expand description
An element segment’s mode.
Variants
Passive
A passive element segment.
Passive segments are part of the bulk memory proposal.
Declared
A declared element segment.
Declared segments are part of the bulk memory proposal.
Active
Fields
table: Option<u32>
The table index.
Active
element specifying a None
table forces the MVP encoding and refers to the
0th table holding funcref
s. Non-None
tables use the encoding introduced with the
bulk memory proposal and can refer to tables with any valid reference type.
offset: &'a ConstExpr
The offset within the table to place this segment.
An active element segment.
Trait Implementations
sourceimpl<'a> Clone for ElementMode<'a>
impl<'a> Clone for ElementMode<'a>
sourcefn clone(&self) -> ElementMode<'a>
fn clone(&self) -> ElementMode<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<'a> RefUnwindSafe for ElementMode<'a>
impl<'a> Send for ElementMode<'a>
impl<'a> Sync for ElementMode<'a>
impl<'a> Unpin for ElementMode<'a>
impl<'a> UnwindSafe for ElementMode<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more