A methods similar to [`Component::get_export`] except for this instance. This method will lookup the `name` provided within the `instance` provided and return a [`ComponentItem`] describing the export, and [`ComponentExportIndex`] which can be passed other `get_*` functions like [`Instance::get_func`]. The [`ComponentItem`] is more expensive to compute than the [`ComponentExportIndex`]. If you a
(
&self,
mut store: impl AsContextMut,
instance: Option<&ComponentExportIndex>,
name: &str,
)
| 287 | /// |
| 288 | /// Panics if `store` does not own this instance. |
| 289 | pub fn get_export( |
| 290 | &self, |
| 291 | mut store: impl AsContextMut, |
| 292 | instance: Option<&ComponentExportIndex>, |
| 293 | name: &str, |
| 294 | ) -> Option<(ComponentItem, ComponentExportIndex)> { |
| 295 | self._get_export(store.as_context_mut().0, instance, name) |
| 296 | } |
| 297 | |
| 298 | fn _get_export( |
| 299 | &self, |
nothing calls this directly
no test coverage detected