Adding lifetime to Externals to allow to expose infromation by reference that exists within externals existance

This commit is contained in:
Illia Polosukhin 2019-01-21 23:02:17 -08:00
parent 9170303aad
commit da3067ca03
1 changed files with 2 additions and 2 deletions

View File

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