[][src]Struct substrate_wasmtime::TableType

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]

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 Clone for TableType[src]

impl Debug for TableType[src]

impl Eq for TableType[src]

impl From<TableType> for ExternType[src]

impl Hash for TableType[src]

impl PartialEq<TableType> for TableType[src]

impl StructuralEq for TableType[src]

impl StructuralPartialEq for TableType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.