(
&self,
store: &'a StoreOpaque,
name: impl ExportLookup,
)
| 346 | } |
| 347 | |
| 348 | fn lookup_export<'a>( |
| 349 | &self, |
| 350 | store: &'a StoreOpaque, |
| 351 | name: impl ExportLookup, |
| 352 | ) -> Option<(&'a ComponentInstance, &'a Export)> { |
| 353 | let data = self.id().get(store); |
| 354 | let index = name.lookup(data.component(), None)?; |
| 355 | Some((data, &data.component().env_component().export_items[index])) |
| 356 | } |
| 357 | |
| 358 | /// Returns the [`InstancePre`] that was used to create this instance. |
| 359 | pub fn instance_pre<T>(&self, store: impl AsContext<Data = T>) -> InstancePre<T> { |
no test coverage detected