pub fn instantiate(&self, mut store: impl AsContextMut<Data = T>) -> Result<Instance> {
        // For the unsafety here the typecheck happened at creation time of this
        // structure and then othrewise the `T` of `InstancePre<T>` connects any
        // host functions we have in our definition list to the `store` that was
        // passed in.
        let mut store = store.as_context_mut();
        let mut instantiator = unsafe {
            self.verify_store_and_reserve_space(&mut store.0)?;
            Instantiator::new(
                store.0,
                &self.module,
                ImportSource::Definitions(&self.items),
            )?
        };
        instantiator.run(&mut store)
    }
/// Instantiates this instance, creating a new instance within the provided
/// `store`.
///
/// This function will run the actual process of instantiation to
/// completion. This will use all of the previously-closed-over items as
/// imports to instantiate the module that this was originally created with.
///
/// For more information about instantiation see [`Instance::new`].
///
/// # Panics
///
/// Panics if any import closed over by this [`InstancePre`] isn't owned by
/// `store`, or if `store` has async support enabled. Additionally this
/// function will panic if the `store` provided comes from a different
/// [`Engine`] than the [`InstancePre`] originally came from.
Instantiates this instance, creating a new instance within the provided
`store`.

This function will run the actual process of instantiation to
completion. This will use all of the previously-closed-over items as
imports to instantiate the module that this was originally created with.

For more information about instantiation see [`Instance::new`].
Instantiates this instance creating a new instance within the provided ` store ` . This function will run the actual process of instantiation to completion . This will use all of the previously - closed - over items as imports to instantiate the module that this was originally created with . For more information about instantiation see [ ` Instance :: new ` ] .
pub fn instantiate(&self, mut store: impl AsContextMut<Data = T>) -> Result<Instance> {
        // For the unsafety here the typecheck happened at creation time of this
        // structure and then othrewise the `T` of `InstancePre<T>` connects any
        // host functions we have in our definition list to the `store` that was
        // passed in.
        let mut store = store.as_context_mut();
        let mut instantiator = unsafe {
            self.verify_store_and_reserve_space(&mut store.0)?;
            Instantiator::new(
                store.0,
                &self.module,
                ImportSource::Definitions(&self.items),
            )?
        };
        instantiator.run(&mut store)
    }
pub fn instantiate ( & self , mut store : impl AsContextMut < Data = T > ) -> Result < Instance > { // For the unsafety here the typecheck happened at creation time of this // structure and then othrewise the `T` of `InstancePre<T>` connects any // host functions we have in our definition list to the `store` that was // passed in. let mut store = store . as_context_mut ( ) ; let mut instantiator = unsafe { self . verify_store_and_reserve_space ( & mut store . 0 ) ? ; Instantiator :: new ( store . 0 , & self . module , ImportSource :: Definitions ( & self . items ) , ) ? } ; instantiator . run ( & mut store ) }
Instantiates this instance, creating a new instance within the provided
`store`.
Instantiates this instance creating a new instance within the provided ` store ` .
&self
store
impl AsContextMut<Data = T>
&self
store
impl AsContextMut<Data = T>
panics
Panics if any import closed over by this [`InstancePre`] isn't owned by
`store`, or if `store` has async support enabled. Additionally this
function will panic if the `store` provided comes from a different
[`Engine`] than the [`InstancePre`] originally came from.
Panics if any import closed over by this [ ` InstancePre ` ] isn ' t owned by ` store ` or if ` store ` has async support enabled . Additionally this function will panic if the ` store ` provided comes from a different [ ` Engine ` ] than the [ ` InstancePre ` ] originally came from .