/// Get a raw pointer to the global at the given index regardless whether it
/// is defined locally or imported from another module.
///
/// Panics if the index is out of bound or is the reserved value.
Get a raw pointer to the global at the given index regardless whether it
is defined locally or imported from another module.

Panics if the index is out of bound or is the reserved value.
Get a raw pointer to the global at the given index regardless whether it is defined locally or imported from another module . Panics if the index is out of bound or is the reserved value .
pub(crate) fn defined_or_imported_global_ptr(
        &self,
        index: GlobalIndex,
    ) -> *mut VMGlobalDefinition {
        if let Some(index) = self.module().defined_global_index(index) {
            self.global_ptr(index)
        } else {
            self.imported_global(index).from
        }
    }
pub ( crate ) fn defined_or_imported_global_ptr ( & self , index : GlobalIndex , ) -> * mut VMGlobalDefinition { if let Some ( index ) = self . module ( ) . defined_global_index ( index ) { self . global_ptr ( index ) } else { self . imported_global ( index ) . from } }
Get a raw pointer to the global at the given index regardless whether it
is defined locally or imported from another module.
Get a raw pointer to the global at the given index regardless whether it is defined locally or imported from another module .
&self
index
GlobalIndex