Enum wasm_encoder::ElementMode [−][src]
pub enum ElementMode<'a> { Passive, Declared, Active { table: Option<u32>, offset: Instruction<'a>, }, }
Expand description
An element segment’s mode.
Variants
A passive element segment.
Passive segments are part of the bulk memory proposal.
A declared element segment.
Declared segments are part of the bulk memory proposal.
An active element segment.
Fields of Active
table: Option<u32>
The table index.
None
is implicitly table 0
. Non-None
tables are part of the
reference types proposal.
offset: Instruction<'a>
The offset within the table to place this segment.
Trait Implementations
Auto 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
Mutably borrows from an owned value. Read more