mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
10 lines
273 B
Rust
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>;
|
|
}
|