Enum wasmtime_runtime::TableElement
source · pub enum TableElement {
FuncRef(*mut VMCallerCheckedAnyfunc),
ExternRef(Option<VMExternRef>),
UninitFunc,
}
Expand description
An element going into or coming out of a table.
Table elements are stored as pointers and are default-initialized with ptr::null_mut
.
Variants§
FuncRef(*mut VMCallerCheckedAnyfunc)
A funcref
.
ExternRef(Option<VMExternRef>)
An exrernref
.
UninitFunc
An uninitialized funcref value. This should never be exposed
beyond the wasmtime
crate boundary; the upper-level code
(which has access to the info needed for lazy initialization)
will replace it when fetched.
Trait Implementations§
source§impl Clone for TableElement
impl Clone for TableElement
source§fn clone(&self) -> TableElement
fn clone(&self) -> TableElement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<*mut VMCallerCheckedAnyfunc> for TableElement
impl From<*mut VMCallerCheckedAnyfunc> for TableElement
source§fn from(f: *mut VMCallerCheckedAnyfunc) -> TableElement
fn from(f: *mut VMCallerCheckedAnyfunc) -> TableElement
Converts to this type from the input type.
source§impl From<Option<VMExternRef>> for TableElement
impl From<Option<VMExternRef>> for TableElement
source§fn from(x: Option<VMExternRef>) -> TableElement
fn from(x: Option<VMExternRef>) -> TableElement
Converts to this type from the input type.
source§impl From<VMExternRef> for TableElement
impl From<VMExternRef> for TableElement
source§fn from(x: VMExternRef) -> TableElement
fn from(x: VMExternRef) -> TableElement
Converts to this type from the input type.