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