Struct wasmedge_sys::TableType

source ·
pub struct TableType { /* private fields */ }
Expand description

A WasmEdge TableType classifies a Table instance over elements of element types within a size range.

Implementations§

Creates a new TableType to be associated with the given limit range of the size and the reference type.

Arguments
  • elem_type - The element type.

  • min - The initial size of the table to be created.

  • max - The maximum size of the table to be created.

Error

If fail to create a TableType, then an error is returned.

Example
let ty = TableType::create(WasmRefType::FuncRef, 10, Some(20)).expect("fail to create a TableType");

Returns the element type.

Returns the initial size of the Table.

Returns the maximum size of the Table.

Provides a raw pointer to the inner table type context.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
Converts to this type from the input type.
Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.