mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
10 lines
283 B
Rust
10 lines
283 B
Rust
struct DynamicFunc {}
|
|
|
|
impl DynamicFunc {
|
|
fn new<F>(signature: &FuncSig, func: F) -> Self;
|
|
fn signature(&self) -> &FuncDescriptor;
|
|
fn params(&self) -> &[Type];
|
|
fn returns(&self) -> &[Type];
|
|
fn call(&self, params: &[Value] -> Result<Box<[Value]>, RuntimeError>;
|
|
}
|