mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 05:18:43 +00:00
doc(deprecated) Update changes.
This commit is contained in:
@@ -2,8 +2,8 @@ struct DynamicFunc {}
|
||||
|
||||
impl DynamicFunc {
|
||||
fn new<F>(signature: &FuncSig, func: F) -> Self;
|
||||
fn signature(&self) -> &FuncDescriptor;
|
||||
fn signature(&self) -> &FuncSig;
|
||||
fn params(&self) -> &[Type];
|
||||
fn returns(&self) -> &[Type];
|
||||
fn call(&self, params: &[Value] -> Result<Box<[Value]>, RuntimeError>;
|
||||
fn call(&self, params: &[Value]) -> Result<Box<[Value]>, RuntimeError>;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ struct DynFunc {}
|
||||
|
||||
impl DynFunc {
|
||||
fn call(&self, params: &[Value]) -> Result<Vec<Value>, CallError>;
|
||||
fn signature(&self) -> &FuncDescriptor;
|
||||
fn signature(&self) -> &FuncSig;
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ impl<Args, Rets> Func<Args, Rets> {
|
||||
fn returns(&self) -> &[Type];
|
||||
fn call(...) -> Result<Rets, RuntimeError>;
|
||||
fn dyn_call(&self, params: &[Value]) -> Result<Box<[Value]>, RuntimeError>;
|
||||
fn signature(&self) -> &FuncDescriptor;
|
||||
fn signature(&self) -> &FuncSig;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user