Struct wasmtime_environ::BuiltinFunctionIndex
source · [−]pub struct BuiltinFunctionIndex(_);
Expand description
An index type for builtin functions.
Implementations
sourceimpl 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
sourceimpl Clone for BuiltinFunctionIndex
impl Clone for BuiltinFunctionIndex
sourcefn clone(&self) -> BuiltinFunctionIndex
fn clone(&self) -> BuiltinFunctionIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BuiltinFunctionIndex
impl Debug for BuiltinFunctionIndex
impl Copy for BuiltinFunctionIndex
Auto Trait Implementations
impl RefUnwindSafe for BuiltinFunctionIndex
impl Send for BuiltinFunctionIndex
impl Sync for BuiltinFunctionIndex
impl Unpin for BuiltinFunctionIndex
impl UnwindSafe for BuiltinFunctionIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more