pub fn push_defined_instance<'a>(
        self,
        cx: &mut ModuleContext<'a>,
        instance_type: TypeId,
        module: Module,
        args: Vec<wasmparser::InstanceArg<'a>>,
    ) {
        assert!(cx.types.get(instance_type).is_instance());
        let info = cx.defined_mut(self);
        let index = u32::try_from(info.instances.len()).unwrap();
        info.instances.push(instance_type);
        info.instantiations.insert(index, (module, args));
    }
/// Push a new, imported instance into this module's instance index space.
Push a new, imported instance into this module's instance index space.
Push a new imported instance into this module ' s instance index space .
pub fn push_defined_instance<'a>(
        self,
        cx: &mut ModuleContext<'a>,
        instance_type: TypeId,
        module: Module,
        args: Vec<wasmparser::InstanceArg<'a>>,
    ) {
        assert!(cx.types.get(instance_type).is_instance());
        let info = cx.defined_mut(self);
        let index = u32::try_from(info.instances.len()).unwrap();
        info.instances.push(instance_type);
        info.instantiations.insert(index, (module, args));
    }
pub fn push_defined_instance < ' a > ( self , cx : & mut ModuleContext < ' a > , instance_type : TypeId , module : Module , args : Vec < wasmparser :: InstanceArg < ' a > > , ) { assert ! ( cx types get ( instance_type ) is_instance ( ) ) ; let info = cx . defined_mut ( self ) ; let index = u32 :: try_from ( info . instances . len ( ) ) . unwrap ( ) ; info . instances . push ( instance_type ) ; info . instantiations . insert ( index , ( module , args ) ) ; }
Push a new, imported instance into this module's instance index space.
Push a new imported instance into this module ' s instance index space .
self
cx
&mut ModuleContext<'a>
instance_type
TypeId
module
Module
args
Vec<wasmparser::InstanceArg<'a>>
self
cx
&mut ModuleContext<'a>
instance_type
TypeId
module
Module
args
Vec<wasmparser::InstanceArg<'a>>