Files
wasmer/lib/deprecated/runtime-core/doc/old-api/func.rs
2020-07-07 13:22:49 +02:00

10 lines
273 B
Rust

struct Func<Args, Rets> {}
impl<Args, Rets> Func<Args, Rets> {
fn new<F>(func: F) -> Self;
fn params(&self) -> &'static [Type];
fn returns(&self) -> &'static [Type];
fn call(...) -> Result<Rets, RuntimeError>;
fn get_vm_func(&self) -> NonNull<Func>;
}