Get the globals defined in this instance (not imported).
(
&self,
store: StoreId,
)
| 526 | |
| 527 | /// Get the globals defined in this instance (not imported). |
| 528 | pub fn defined_globals( |
| 529 | &self, |
| 530 | store: StoreId, |
| 531 | ) -> impl ExactSizeIterator<Item = (DefinedGlobalIndex, crate::Global)> + '_ { |
| 532 | let module = self.env_module(); |
| 533 | self.all_globals(store) |
| 534 | .skip(module.num_imported_globals) |
| 535 | .map(move |(i, global)| (module.defined_global_index(i).unwrap(), global)) |
| 536 | } |
| 537 | |
| 538 | /// Return a pointer to the interrupts structure |
| 539 | #[inline] |
nothing calls this directly
no test coverage detected