[]Struct wasmer_runtime::types::TableDescriptor

pub struct TableDescriptor {
    pub ty: Type,
    pub minimum: u32,
    pub maximum: Option<u32>,
}

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.

Fields

ty: Type

The type of data stored in elements of the table.

minimum: u32

The minimum number of elements in the table.

maximum: Option<u32>

The maximum number of elements in the table.

Implementations

impl TableType

pub fn new(ty: Type, minimum: u32, maximum: Option<u32>) -> TableType

Creates a new table descriptor which will contain the specified element and have the limits applied to its length.

Trait Implementations

impl Clone for TableType

impl Copy for TableType

impl Debug for TableType

impl<'de> Deserialize<'de> for TableType

impl Display for TableType

impl Eq for TableType

impl Hash for TableType

impl PartialEq<TableType> for TableType

impl Serialize for TableType

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[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.