mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 05:08:19 +00:00
11 lines
330 B
Rust
11 lines
330 B
Rust
struct Func<Args, Rets> {}
|
|
|
|
impl<Args, Rets> Func<Args, Rets> {
|
|
fn new<F>(func: F) -> Self;
|
|
fn params(&self) -> &[Type];
|
|
fn returns(&self) -> &[Type];
|
|
fn call(...) -> Result<Rets, RuntimeError>;
|
|
fn dyn_call(&self, params: &[Value]) -> Result<Box<[Value]>, RuntimeError>;
|
|
fn signature(&self) -> &FuncSig;
|
|
}
|