Enum wasmtime_runtime::TableElement
source · pub enum TableElement {
FuncRef(*mut VMCallerCheckedFuncRef),
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 VMCallerCheckedFuncRef)
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 VMCallerCheckedFuncRef> for TableElement
impl From<*mut VMCallerCheckedFuncRef> for TableElement
source§fn from(f: *mut VMCallerCheckedFuncRef) -> TableElement
fn from(f: *mut VMCallerCheckedFuncRef) -> 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.
impl Send for TableElementwhere VMExternRef: Send,
impl Sync for TableElementwhere VMExternRef: Sync,
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more