Struct wasmtime::TableType [−][src]
pub struct TableType { /* fields omitted */ }A descriptor for a table in a WebAssembly module.
Tables are contiguous chunks of a specific element, typically a funcref or
an externref. The most common use for tables is a function table through
which call_indirect can invoke other functions.
Implementations
impl TableType[src]
impl TableType[src]pub fn new(element: ValType, limits: Limits) -> TableType[src]
Creates a new table descriptor which will contain the specified
element and have the limits applied to its length.
pub fn element(&self) -> &ValType[src]
Returns the element value type of this table.
pub fn limits(&self) -> &Limits[src]
Returns the limits, in units of elements, of this table.
Trait Implementations
impl From<TableType> for ExternType[src]
impl From<TableType> for ExternType[src]