MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / _get_export

Method _get_export

crates/wasmtime/src/runtime/instance.rs:475–484  ·  view source on GitHub ↗
(&self, store: &mut StoreOpaque, entity: EntityIndex)

Source from the content-addressed store, hash-verified

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 ///

Callers 2

get_exportMethod · 0.45
get_module_exportMethod · 0.45

Calls 4

idMethod · 0.45
engineMethod · 0.45

Tested by

no test coverage detected