fn invoke(
        &mut self,
        instance_name: Option<String>,
        field: &str,
        args: &[Value],
    ) -> Result<ActionOutcome, WastError> {
        let value_args = args
            .iter()
            .map(|arg| runtime_value(*arg))
            .collect::<Vec<_>>();
        let index = self.get_index(&instance_name)?;
        self.namespace
            .invoke(&mut *self.compiler, index, field, &value_args)
            .map_err(WastError::Action)
    }
/// Invoke an exported function from an instance.
Invoke an exported function from an instance.
Invoke an exported function from an instance .
fn invoke(
        &mut self,
        instance_name: Option<String>,
        field: &str,
        args: &[Value],
    ) -> Result<ActionOutcome, WastError> {
        let value_args = args
            .iter()
            .map(|arg| runtime_value(*arg))
            .collect::<Vec<_>>();
        let index = self.get_index(&instance_name)?;
        self.namespace
            .invoke(&mut *self.compiler, index, field, &value_args)
            .map_err(WastError::Action)
    }
fn invoke ( & mut self , instance_name : Option < String > , field : & str , args : & [ Value ] , ) -> Result < ActionOutcome , WastError > { let value_args = args . iter ( ) . map ( | arg | runtime_value ( * arg ) ) . collect :: < Vec < _ > > ( ) ; let index = self . get_index ( & instance_name ) ? ; self . namespace . invoke ( & mut * self . compiler , index , field , & value_args ) . map_err ( WastError :: Action ) }
Invoke an exported function from an instance.
Invoke an exported function from an instance .
&mut self
instance_name
Option<String>
field
&str
args
&[Value]