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_grow_externref() -> Self
pub const fn table_grow_externref() -> Self
Returns an index for Wasm’s table.grow
instruction for externref
s.
Sourcepub const fn table_fill_externref() -> Self
pub const fn table_fill_externref() -> Self
Returns an index for Wasm’s table.fill
instruction for externref
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 drop_externref() -> Self
pub const fn drop_externref() -> Self
Returns an index to drop a VMExternRef
.
Sourcepub const fn activations_table_insert_with_gc() -> Self
pub const fn activations_table_insert_with_gc() -> Self
Returns an index to do a GC and then insert a VMExternRef
into the
VMExternRefActivationsTable
.
Sourcepub const fn externref_global_get() -> Self
pub const fn externref_global_get() -> Self
Returns an index for Wasm’s global.get
instruction for externref
s.
Sourcepub const fn externref_global_set() -> Self
pub const fn externref_global_set() -> Self
Returns an index for Wasm’s global.get
instruction for externref
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 moreSource§impl Debug for BuiltinFunctionIndex
impl Debug for BuiltinFunctionIndex
impl Copy for BuiltinFunctionIndex
Auto Trait Implementations§
impl Freeze for BuiltinFunctionIndex
impl RefUnwindSafe for BuiltinFunctionIndex
impl Send for BuiltinFunctionIndex
impl Sync for BuiltinFunctionIndex
impl Unpin for BuiltinFunctionIndex
impl UnwindSafe for BuiltinFunctionIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)