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 imported_memory32_grow() -> Self
pub const fn imported_memory32_grow() -> Self
Returns an index for wasm’s imported memory.grow
builtin function.
sourcepub const fn memory32_size() -> Self
pub const fn memory32_size() -> Self
Returns an index for wasm’s memory.size
builtin function.
sourcepub const fn imported_memory32_size() -> Self
pub const fn imported_memory32_size() -> Self
Returns an index for wasm’s imported memory.size
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
for locally defined memories.
sourcepub const fn imported_memory_fill() -> Self
pub const fn imported_memory_fill() -> Self
Returns an index for wasm’s memory.fill
for imported memories.
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_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 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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more