[][src]Enum wasm_encoder::ElementMode

pub enum ElementMode<'a> {
    Passive,
    Declared,
    Active {
        table: Option<u32>,
        offset: Instruction<'a>,
    },
}

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

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.