Struct wasmtime_environ::BuiltinFunctionIndex
source · pub struct BuiltinFunctionIndex(/* private fields */);
Expand description
An index type for builtin functions.
Implementations§
source§impl BuiltinFunctionIndex
impl BuiltinFunctionIndex
sourcepub const fn memory32_grow() -> Self
pub const fn memory32_grow() -> Self
Returns an index for wasm’s memory.grow
builtin function.
sourcepub const fn table_copy() -> Self
pub const fn table_copy() -> Self
Returns an index for wasm’s table.copy
when both tables are locally
defined.
sourcepub const fn table_init() -> Self
pub const fn table_init() -> Self
Returns an index for wasm’s table.init
.
sourcepub const fn memory_copy() -> Self
pub const fn memory_copy() -> Self
Returns an index for wasm’s memory.copy
sourcepub const fn memory_fill() -> Self
pub const fn memory_fill() -> Self
Returns an index for wasm’s memory.fill
instruction.
sourcepub const fn memory_init() -> Self
pub const fn memory_init() -> Self
Returns an index for wasm’s memory.init
instruction.
sourcepub const fn table_get_lazy_init_func_ref() -> Self
pub const fn table_get_lazy_init_func_ref() -> Self
Returns a table entry after lazily initializing it.
sourcepub const fn table_grow_func_ref() -> Self
pub const fn table_grow_func_ref() -> Self
Returns an index for Wasm’s table.grow
instruction for funcref
s.
sourcepub const fn table_fill_func_ref() -> Self
pub const fn table_fill_func_ref() -> Self
Returns an index for Wasm’s table.fill
instruction for funcref
s.
sourcepub const fn memory_atomic_notify() -> Self
pub const fn memory_atomic_notify() -> Self
Returns an index for wasm’s memory.atomic.notify
instruction.
sourcepub const fn memory_atomic_wait32() -> Self
pub const fn memory_atomic_wait32() -> Self
Returns an index for wasm’s memory.atomic.wait32
instruction.
sourcepub const fn memory_atomic_wait64() -> Self
pub const fn memory_atomic_wait64() -> Self
Returns an index for wasm’s memory.atomic.wait64
instruction.
sourcepub const fn out_of_gas() -> Self
pub const fn out_of_gas() -> Self
Invoked when fuel has run out while executing a function.
sourcepub const fn check_malloc() -> Self
pub const fn check_malloc() -> Self
Invoked before malloc returns.
sourcepub const fn check_free() -> Self
pub const fn check_free() -> Self
Invoked before the free returns.
sourcepub const fn check_load() -> Self
pub const fn check_load() -> Self
Invoked before a load is executed.
sourcepub const fn check_store() -> Self
pub const fn check_store() -> Self
Invoked before a store is executed.
sourcepub const fn malloc_start() -> Self
pub const fn malloc_start() -> Self
Invoked after malloc is called.
sourcepub const fn free_start() -> Self
pub const fn free_start() -> Self
Invoked after free is called.
sourcepub const fn update_stack_pointer() -> Self
pub const fn update_stack_pointer() -> Self
Invoked when wasm stack pointer is updated.
sourcepub const fn update_mem_size() -> Self
pub const fn update_mem_size() -> Self
Invoked before memory.grow is called.
sourcepub const fn builtin_functions_total_number() -> u32
pub const fn builtin_functions_total_number() -> u32
Returns the total number of builtin functions.
Trait Implementations§
source§impl Clone for BuiltinFunctionIndex
impl Clone for BuiltinFunctionIndex
source§fn clone(&self) -> BuiltinFunctionIndex
fn clone(&self) -> BuiltinFunctionIndex
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more