mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-12 13:28:49 +00:00
doc(deprecated) Update changes.
This commit is contained in:
@@ -2,8 +2,8 @@ struct DynamicFunc {}
|
|||||||
|
|
||||||
impl DynamicFunc {
|
impl DynamicFunc {
|
||||||
fn new<F>(signature: &FuncSig, func: F) -> Self;
|
fn new<F>(signature: &FuncSig, func: F) -> Self;
|
||||||
fn signature(&self) -> &FuncDescriptor;
|
fn signature(&self) -> &FuncSig;
|
||||||
fn params(&self) -> &[Type];
|
fn params(&self) -> &[Type];
|
||||||
fn returns(&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 {
|
impl DynFunc {
|
||||||
fn call(&self, params: &[Value]) -> Result<Vec<Value>, CallError>;
|
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 returns(&self) -> &[Type];
|
||||||
fn call(...) -> Result<Rets, RuntimeError>;
|
fn call(...) -> Result<Rets, RuntimeError>;
|
||||||
fn dyn_call(&self, params: &[Value]) -> Result<Box<[Value]>, 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