(&self, global: GlobalIndex)
| 445 | /// index is an imported global. |
| 446 | #[inline] |
| 447 | pub fn defined_global_index(&self, global: GlobalIndex) -> Option<DefinedGlobalIndex> { |
| 448 | if global.index() < self.num_imported_globals { |
| 449 | None |
| 450 | } else { |
| 451 | Some(DefinedGlobalIndex::new( |
| 452 | global.index() - self.num_imported_globals, |
| 453 | )) |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | /// Test whether the given global index is for an exported global. |
| 458 | #[inline] |
no test coverage detected