Files
wasmer/lib/deprecated/runtime-core/doc/new-api/dynamicfunc.rs
2020-07-07 13:05:20 +02:00

10 lines
277 B
Rust

struct DynamicFunc {}
impl DynamicFunc {
fn new<F>(signature: &FuncSig, func: F) -> Self;
fn signature(&self) -> &FuncSig;
fn params(&self) -> &[Type];
fn returns(&self) -> &[Type];
fn call(&self, params: &[Value]) -> Result<Box<[Value]>, RuntimeError>;
}