Enum wasmtime_runtime::TableElement
source · [−]pub enum TableElement {
FuncRef(*mut VMCallerCheckedAnyfunc),
ExternRef(Option<VMExternRef>),
}
Expand description
An element going into or coming out of a table.
Variants
FuncRef(*mut VMCallerCheckedAnyfunc)
A funcref
.
ExternRef(Option<VMExternRef>)
An exrernref
.
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 Debug for TableElement
impl Debug for TableElement
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.
sourceimpl TryFrom<TableElement> for *mut VMCallerCheckedAnyfunc
impl TryFrom<TableElement> for *mut VMCallerCheckedAnyfunc
type Error = TableElement
type Error = TableElement
The type returned in the event of a conversion error.
sourcefn try_from(e: TableElement) -> Result<Self, Self::Error>
fn try_from(e: TableElement) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<TableElement> for Option<VMExternRef>
impl TryFrom<TableElement> for Option<VMExternRef>
type Error = TableElement
type Error = TableElement
The type returned in the event of a conversion error.
sourcefn try_from(e: TableElement) -> Result<Self, Self::Error>
fn try_from(e: TableElement) -> Result<Self, Self::Error>
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TableElement
impl !Send for TableElement
impl !Sync for TableElement
impl Unpin for TableElement
impl !UnwindSafe for TableElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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