Enum wast::TableKind[][src]

pub enum TableKind<'a> {
    Import {
        import: InlineImport<'a>,
        ty: TableType<'a>,
    },
    Normal(TableType<'a>),
    Inline {
        elem: RefType<'a>,
        payload: ElemPayload<'a>,
    },
}
Expand description

Different ways to textually define a table.

Variants

Import

This table is actually an inlined import definition.

Fields of Import

import: InlineImport<'a>ty: TableType<'a>
Normal(TableType<'a>)

A typical memory definition which simply says the limits of the table

Tuple Fields of Normal

0: TableType<'a>
Inline

The elem segments of this table, starting from 0, explicitly listed

Fields of Inline

elem: RefType<'a>

The element type of this table.

payload: ElemPayload<'a>

The element table entries to have, and the length of this list is the limits of the table as well.

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.