pub struct BuiltinFunctionIndex(/* private fields */);
Expand description

An index type for builtin functions.

Implementations§

source§

impl BuiltinFunctionIndex

source

pub const fn from_u32(i: u32) -> Self

Create a new BuiltinFunctionIndex from its index

source

pub const fn index(&self) -> u32

Return the index as an u32 number.

source§

impl BuiltinFunctionIndex

source

pub const fn memory32_grow() -> Self

Returns an index for wasm’s memory.grow builtin function.

source

pub const fn table_copy() -> Self

Returns an index for wasm’s table.copy when both tables are locally defined.

source

pub const fn table_init() -> Self

Returns an index for wasm’s table.init.

source

pub const fn elem_drop() -> Self

Returns an index for wasm’s elem.drop.

source

pub const fn memory_copy() -> Self

Returns an index for wasm’s memory.copy

source

pub const fn memory_fill() -> Self

Returns an index for wasm’s memory.fill instruction.

source

pub const fn memory_init() -> Self

Returns an index for wasm’s memory.init instruction.

source

pub const fn ref_func() -> Self

Returns a value for wasm’s ref.func instruction.

source

pub const fn data_drop() -> Self

Returns an index for wasm’s data.drop instruction.

source

pub const fn table_get_lazy_init_func_ref() -> Self

Returns a table entry after lazily initializing it.

source

pub const fn table_grow_func_ref() -> Self

Returns an index for Wasm’s table.grow instruction for funcrefs.

source

pub const fn table_grow_externref() -> Self

Returns an index for Wasm’s table.grow instruction for externrefs.

source

pub const fn table_fill_externref() -> Self

Returns an index for Wasm’s table.fill instruction for externrefs.

source

pub const fn table_fill_func_ref() -> Self

Returns an index for Wasm’s table.fill instruction for funcrefs.

source

pub const fn drop_externref() -> Self

Returns an index to drop a VMExternRef.

source

pub const fn activations_table_insert_with_gc() -> Self

Returns an index to do a GC and then insert a VMExternRef into the VMExternRefActivationsTable.

source

pub const fn externref_global_get() -> Self

Returns an index for Wasm’s global.get instruction for externrefs.

source

pub const fn externref_global_set() -> Self

Returns an index for Wasm’s global.get instruction for externrefs.

source

pub const fn memory_atomic_notify() -> Self

Returns an index for wasm’s memory.atomic.notify instruction.

source

pub const fn memory_atomic_wait32() -> Self

Returns an index for wasm’s memory.atomic.wait32 instruction.

source

pub const fn memory_atomic_wait64() -> Self

Returns an index for wasm’s memory.atomic.wait64 instruction.

source

pub const fn out_of_gas() -> Self

Invoked when fuel has run out while executing a function.

source

pub const fn new_epoch() -> Self

Invoked when we reach a new epoch.

source

pub const fn builtin_functions_total_number() -> u32

Returns the total number of builtin functions.

Trait Implementations§

source§

impl Clone for BuiltinFunctionIndex

source§

fn clone(&self) -> BuiltinFunctionIndex

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BuiltinFunctionIndex

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for BuiltinFunctionIndex

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.