[−][src]Enum wasm_encoder::ElementMode
pub enum ElementMode<'a> { Passive, Declared, Active { table: Option<u32>, offset: Instruction<'a>, }, }
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.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ElementMode<'a>
[src]
impl<'a> Send for ElementMode<'a>
[src]
impl<'a> Sync for ElementMode<'a>
[src]
impl<'a> Unpin for ElementMode<'a>
[src]
impl<'a> UnwindSafe for ElementMode<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,