[][src]Enum wast::TableKind

pub enum TableKind<'a> {
    Import {
        module: &'a str,
        name: &'a str,
        ty: TableType,
    },
    Normal(TableType),
    Inline {
        elem: TableElemType,
        elems: Vec<Index<'a>>,
    },
}

Different ways to textually define a table.

Variants

Import

This table is actually an inlined import definition.

Fields of Import

module: &'a strname: &'a strty: TableType
Normal(TableType)

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

Inline

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

Fields of Inline

elem: TableElemType

The element type of this table.

elems: Vec<Index<'a>>

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

Trait Implementations

impl<'a> Debug for TableKind<'a>[src]

Auto Trait Implementations

impl<'a> Send for TableKind<'a>

impl<'a> Sync for TableKind<'a>

impl<'a> Unpin for TableKind<'a>

impl<'a> UnwindSafe for TableKind<'a>

impl<'a> RefUnwindSafe for TableKind<'a>

Blanket Implementations

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

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

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.

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

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

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