(&self, store: &mut StoreOpaque, entity: EntityIndex)
| 473 | } |
| 474 | |
| 475 | fn _get_export(&self, store: &mut StoreOpaque, entity: EntityIndex) -> Extern { |
| 476 | let id = store.id(); |
| 477 | // SAFETY: the store `id` owns this instance and all exports contained |
| 478 | // within. |
| 479 | let export = unsafe { |
| 480 | let (instance, registry) = self.id.get_mut_and_module_registry(store); |
| 481 | instance.get_export_by_index_mut(registry, id, entity) |
| 482 | }; |
| 483 | Extern::from_wasmtime_export(export, store.engine()) |
| 484 | } |
| 485 | |
| 486 | /// Looks up an exported [`Func`] value by name. |
| 487 | /// |
no test coverage detected