pub fn instantiate(&mut self) -> Result<Instance, InstantiationError> {
        let data_initializers = self
            .data_initializers
            .iter()
            .map(|init| DataInitializer {
                location: init.location.clone(),
                data: &*init.data,
            })
            .collect::<Vec<_>>();
        Instance::new(
            Rc::clone(&self.module),
            self.finished_functions.clone(),
            self.imports.clone(),
            &data_initializers,
            self.signatures.clone(),
            Box::new(()),
        )
    }
/// Crate an `Instance` from this `CompiledModule`.
///
/// Note that if only one instance of this module is needed, it may be more
/// efficient to call the top-level `instantiate`, since that avoids copying
/// the data initializers.
Crate an `Instance` from this `CompiledModule`.
Note that if only one instance of this module is needed, it may be more
efficient to call the top-level `instantiate`, since that avoids copying
the data initializers.
Crate an ` Instance ` from this ` CompiledModule ` . Note that if only one instance of this module is needed it may be more efficient to call the top - level ` instantiate ` since that avoids copying the data initializers .
pub fn instantiate(&mut self) -> Result<Instance, InstantiationError> {
        let data_initializers = self
            .data_initializers
            .iter()
            .map(|init| DataInitializer {
                location: init.location.clone(),
                data: &*init.data,
            })
            .collect::<Vec<_>>();
        Instance::new(
            Rc::clone(&self.module),
            self.finished_functions.clone(),
            self.imports.clone(),
            &data_initializers,
            self.signatures.clone(),
            Box::new(()),
        )
    }
pub fn instantiate ( & mut self ) -> Result < Instance , InstantiationError > { let data_initializers = self . data_initializers . iter ( ) . map ( | init | DataInitializer { location : init . location . clone ( ) , data : & * init . data , } ) . collect :: < Vec < _ > > ( ) ; Instance :: new ( Rc :: clone ( & self . module ) , self . finished_functions . clone ( ) , self . imports . clone ( ) , & data_initializers , self . signatures . clone ( ) , Box :: new ( ( ) ) , ) }
Crate an `Instance` from this `CompiledModule`.
Crate an ` Instance ` from this ` CompiledModule ` .
&mut self