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

Method lookup

crates/wasmtime/src/runtime/component/component.rs:968–970  ·  view source on GitHub ↗
(&self, component: &Component, instance: Option<&ExportIndex>)

Source from the content-addressed store, hash-verified

966 T: ExportLookup + ?Sized,
967{
968 fn lookup(&self, component: &Component, instance: Option<&ExportIndex>) -> Option<ExportIndex> {
969 T::lookup(self, component, instance)
970 }
971}
972
973impl ExportLookup for str {

Callers 3

get_funcMethod · 0.45
lookup_exportMethod · 0.45
lookup_export_indexMethod · 0.45

Calls 4

env_componentMethod · 0.80
lookupFunction · 0.50
getMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected