Enum wast::ElemKind[][src]

pub enum ElemKind<'a> {
    Passive,
    Declared,
    Active {
        table: ItemRef<'a, table>,
        offset: Expression<'a>,
    },
}
Expand description

Different ways to define an element segment in an mdoule.

Variants

Passive

A passive segment that isn’t associated with a table and can be used in various bulk-memory instructions.

Declared

A declared element segment that is purely used to declare function references.

Active

An active segment associated with a table.

Show fields

Fields of Active

table: ItemRef<'a, table>

The table this elem is initializing.

offset: Expression<'a>

The offset within table that we’ll initialize at.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.