pub struct DynFunc<'a> { /* fields omitted */ }
Expand description
A representation of an exported WebAssembly function.
Call an exported WebAssembly function safely.
Pass arguments by wrapping each one in the Value
enum.
The returned values are also each wrapped in a Value
.
This returns CallResult<Vec<Value>>
in order to support
the future multi-value returns WebAssembly feature.
instance
.dyn_func("foo")?
.call(&[])?;
Gets the signature of this Dynfunc
.
Gets a const pointer to the function represent by this DynFunc
.
Implementation of how to get the export corresponding to the implementing type
from an [Instance
] by name. Read more
The type returned in the event of a conversion error.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
Attempt to lookup self in the given table.
Wrap value to be stored in a table.
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.