[][src]Struct walrus::Table

pub struct Table {
    pub initial: u32,
    pub maximum: Option<u32>,
    pub element_ty: ValType,
    pub import: Option<ImportId>,
    pub elem_segments: HashSet<Id<Element>, BuildIdHasher>,
    // some fields omitted
}

A table in the wasm.

Fields

initial: u32

The initial size of this table

maximum: Option<u32>

The maximum size of this table

element_ty: ValType

The type of the elements in this table

import: Option<ImportId>

Whether or not this table is imported, and if so what imports it.

elem_segments: HashSet<Id<Element>, BuildIdHasher>

Active data segments that will be used to initialize this memory.

Implementations

impl Table[src]

pub fn id(&self) -> TableId[src]

Get this table's id.

Trait Implementations

impl Debug for Table[src]

Auto Trait Implementations

impl RefUnwindSafe for Table

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl UnwindSafe for Table

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.