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_funcref() -> Self
pub const fn table_get_lazy_init_funcref() -> Self
Returns a table entry after lazily initializing it.
sourcepub const fn table_grow_funcref() -> Self
pub const fn table_grow_funcref() -> 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_funcref() -> Self
pub const fn table_fill_funcref() -> 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 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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)