Enum wasmtime_runtime::TableElement
source · pub enum TableElement {
FuncRef(*mut VMFuncRef),
GcRef(Option<VMGcRef>),
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 VMFuncRef)
A funcref
.
GcRef(Option<VMGcRef>)
A GC reference.
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 From<VMGcRef> for TableElement
impl From<VMGcRef> for TableElement
source§fn from(x: VMGcRef) -> TableElement
fn from(x: VMGcRef) -> TableElement
Converts to this type from the input type.
impl Send for TableElement
impl Sync for TableElement
Auto Trait Implementations§
impl Freeze for TableElement
impl RefUnwindSafe for TableElement
impl Unpin for TableElement
impl UnwindSafe for TableElement
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