pub fn instance_export<'b>(
        self,
        cx: &'b ModuleContext<'_>,
        instance: u32,
        name: &str,
    ) -> Option<&'b EntityType> {
        let instance = usize::try_from(instance).unwrap();
        let info = cx.defined(self);
        let type_id = info.instances[instance];
        let instance = match cx.types.get(type_id) {
            Type::Instance(i) => i,
            _ => unreachable!(),
        };
        instance.exports.get(name)
    }
/// Get an export from the `n`th instance by name.
Get an export from the `n`th instance by name.
Get an export from the ` n ` th instance by name .
pub fn instance_export<'b>(
        self,
        cx: &'b ModuleContext<'_>,
        instance: u32,
        name: &str,
    ) -> Option<&'b EntityType> {
        let instance = usize::try_from(instance).unwrap();
        let info = cx.defined(self);
        let type_id = info.instances[instance];
        let instance = match cx.types.get(type_id) {
            Type::Instance(i) => i,
            _ => unreachable!(),
        };
        instance.exports.get(name)
    }
pub fn instance_export < ' b > ( self , cx : & ' b ModuleContext < ' _ > , instance : u32 , name : & str , ) -> Option < & ' b EntityType > { let instance = usize :: try_from ( instance ) . unwrap ( ) ; let info = cx . defined ( self ) ; let type_id = info . instances [ instance ] ; let instance = match cx . types . get ( type_id ) { Type :: Instance ( i ) => i , _ => unreachable ! ( ) , } ; instance . exports . get ( name ) }
Get an export from the `n`th instance by name.
Get an export from the ` n ` th instance by name .
self
cx
&'b ModuleContext<'_>
instance
u32
name
&str
self
cx
&'b ModuleContext<'_>
instance
u32
name
&str