mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
10 lines
274 B
Rust
10 lines
274 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(...) -> Results<Rets, RuntimeError>;
|
|
fn get_vm_func(&self) -> NonNull<Func>;
|
|
}
|