Adding lifetime to Externals to allow to expose infromation by reference that exists within externals existance
This commit is contained in:
parent
9170303aad
commit
da3067ca03
|
@ -199,8 +199,8 @@ impl HostError {
|
||||||
/// ```
|
/// ```
|
||||||
pub trait Externals {
|
pub trait Externals {
|
||||||
/// Perform invoke of a host function by specified `index`.
|
/// Perform invoke of a host function by specified `index`.
|
||||||
fn invoke_index(
|
fn invoke_index<'a>(
|
||||||
&mut self,
|
&'a mut self,
|
||||||
index: usize,
|
index: usize,
|
||||||
args: RuntimeArgs,
|
args: RuntimeArgs,
|
||||||
) -> Result<Option<RuntimeValue>, Trap>;
|
) -> Result<Option<RuntimeValue>, Trap>;
|
||||||
|
|
Loading…
Reference in New Issue