doc(deprecated) Update changes.

This commit is contained in:
Ivan Enderlin
2020-07-07 13:05:20 +02:00
parent d9dc052dd2
commit f9b6e5dc9b
3 changed files with 4 additions and 4 deletions

View File

@@ -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>;
}

View File

@@ -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;
}

View File

@@ -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;
}