[][src]Struct walrus::ModuleTables

pub struct ModuleTables { /* fields omitted */ }

The set of tables in this module.

Methods

impl ModuleTables[src]

pub fn add_import(
    &mut self,
    initial: u32,
    max: Option<u32>,
    kind: TableKind,
    import: ImportId
) -> TableId
[src]

Adds a new imported table to this list of tables

pub fn add_local(
    &mut self,
    initial: u32,
    max: Option<u32>,
    kind: TableKind
) -> TableId
[src]

Construct a new table, that does not originate from any of the input wasm tables.

pub fn get(&self, table: TableId) -> &Table[src]

Returns the actual table associated with an ID

pub fn get_mut(&mut self, table: TableId) -> &mut Table[src]

Returns the actual table associated with an ID

pub fn iter(
    &self
) -> impl Iterator<Item = &Table>
[src]

Iterates over all tables in this section.

Trait Implementations

impl Default for ModuleTables[src]

impl Debug for ModuleTables[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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