[][src]Struct wasmer_vm::VMBuiltinFunctionIndex

pub struct VMBuiltinFunctionIndex(_);

An index type for builtin functions.

Implementations

impl VMBuiltinFunctionIndex[src]

pub const fn get_memory32_grow_index() -> Self[src]

Returns an index for wasm's memory.grow builtin function.

pub const fn get_imported_memory32_grow_index() -> Self[src]

Returns an index for wasm's imported memory.grow builtin function.

pub const fn get_memory32_size_index() -> Self[src]

Returns an index for wasm's memory.size builtin function.

pub const fn get_imported_memory32_size_index() -> Self[src]

Returns an index for wasm's imported memory.size builtin function.

pub const fn get_table_copy_index() -> Self[src]

Returns an index for wasm's table.copy when both tables are locally defined.

pub const fn get_table_init_index() -> Self[src]

Returns an index for wasm's table.init.

pub const fn get_elem_drop_index() -> Self[src]

Returns an index for wasm's elem.drop.

pub const fn get_local_memory_copy_index() -> Self[src]

Returns an index for wasm's memory.copy for locally defined memories.

pub const fn get_imported_memory_copy_index() -> Self[src]

Returns an index for wasm's memory.copy for imported memories.

pub const fn get_memory_fill_index() -> Self[src]

Returns an index for wasm's memory.fill for locally defined memories.

pub const fn get_imported_memory_fill_index() -> Self[src]

Returns an index for wasm's memory.fill for imported memories.

pub const fn get_memory_init_index() -> Self[src]

Returns an index for wasm's memory.init instruction.

pub const fn get_data_drop_index() -> Self[src]

Returns an index for wasm's data.drop instruction.

pub const fn get_raise_trap_index() -> Self[src]

Returns an index for wasm's raise_trap instruction.

pub const fn builtin_functions_total_number() -> u32[src]

Returns the total number of builtin functions.

pub const fn index(self) -> u32[src]

Return the index as an u32 number.

Trait Implementations

impl Clone for VMBuiltinFunctionIndex[src]

impl Copy for VMBuiltinFunctionIndex[src]

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

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

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.