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
sourceimpl Clone for TableElement
impl Clone for TableElement
sourcefn clone(&self) -> TableElement
fn clone(&self) -> TableElement
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 From<*mut VMCallerCheckedAnyfunc> for TableElement
impl From<*mut VMCallerCheckedAnyfunc> for TableElement
sourcefn from(f: *mut VMCallerCheckedAnyfunc) -> TableElement
fn from(f: *mut VMCallerCheckedAnyfunc) -> TableElement
Performs the conversion.
sourceimpl From<Option<VMExternRef>> for TableElement
impl From<Option<VMExternRef>> for TableElement
sourcefn from(x: Option<VMExternRef>) -> TableElement
fn from(x: Option<VMExternRef>) -> TableElement
Performs the conversion.
sourceimpl From<VMExternRef> for TableElement
impl From<VMExternRef> for TableElement
sourcefn from(x: VMExternRef) -> TableElement
fn from(x: VMExternRef) -> TableElement
Performs the conversion.
impl Send for TableElement where
VMExternRef: Send,
impl Sync for TableElement where
VMExternRef: Sync,
Auto Trait Implementations
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more