Get a module instance by the internal id
(&self, addr: ModuleInstanceAddr)
| 80 | |
| 81 | /// Get a module instance by the internal id |
| 82 | pub fn get_module_instance(&self, addr: ModuleInstanceAddr) -> Option<ModuleInstance> { |
| 83 | self.module_instances.get(addr as usize).cloned() |
| 84 | } |
| 85 | |
| 86 | #[inline] |
| 87 | pub(crate) fn get_module_instance_internal(&self, addr: ModuleInstanceAddr) -> ModuleInstance { |
no test coverage detected