pub fn defined_globals<'b>(
        self,
        cx: &'b ModuleContext<'_>,
    ) -> impl Iterator<Item = (u32, wasmparser::GlobalType)> + 'b {
        let info = cx.defined(self);
        info.globals
            .iter()
            .copied()
            .enumerate()
            .skip(
                info.defined_globals_index
                    .map_or(info.globals.len(), |i| usize::try_from(i).unwrap()),
            )
            .map(|(i, g)| (u32::try_from(i).unwrap(), g))
    }
/// Iterate over the defined globals in this module.
Iterate over the defined globals in this module.
Iterate over the defined globals in this module .
pub fn defined_globals<'b>(
        self,
        cx: &'b ModuleContext<'_>,
    ) -> impl Iterator<Item = (u32, wasmparser::GlobalType)> + 'b {
        let info = cx.defined(self);
        info.globals
            .iter()
            .copied()
            .enumerate()
            .skip(
                info.defined_globals_index
                    .map_or(info.globals.len(), |i| usize::try_from(i).unwrap()),
            )
            .map(|(i, g)| (u32::try_from(i).unwrap(), g))
    }
pub fn defined_globals < ' b > ( self , cx : & ' b ModuleContext < ' _ > , ) -> impl Iterator < Item = ( u32 , wasmparser :: GlobalType ) > + ' b { let info = cx . defined ( self ) ; info . globals . iter ( ) . copied ( ) . enumerate ( ) . skip ( info . defined_globals_index . map_or ( info . globals . len ( ) , | i | usize :: try_from ( i ) . unwrap ( ) ) , ) . map ( | ( i , g ) | ( u32 :: try_from ( i ) . unwrap ( ) , g ) ) }
Iterate over the defined globals in this module.
Iterate over the defined globals in this module .
self
cx
&'b ModuleContext<'_>
self
cx
&'b ModuleContext<'_>