pub enum TableKind<'a> {
Import {
import: InlineImport<'a>,
ty: TableType<'a>,
},
Normal {
ty: TableType<'a>,
init_expr: Option<Expression<'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.
Normal
Fields
§
init_expr: Option<Expression<'a>>
Optional items initializer expression.
A typical memory definition which simply says the limits of the table
Inline
Fields
§
payload: ElemPayload<'a>
The element table entries to have, and the length of this list is the limits of the table as well.
The elem segments of this table, starting from 0, explicitly listed