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

Method get

crates/wasmtime/src/runtime/component/store.rs:215–218  ·  view source on GitHub ↗

Looks up the `vm::ComponentInstance` within `store` that this id points to. # Panics Panics if `self` does not belong to `store`.

(&self, store: &'a StoreOpaque)

Source from the content-addressed store, hash-verified

213 ///
214 /// Panics if `self` does not belong to `store`.
215 pub(crate) fn get<'a>(&self, store: &'a StoreOpaque) -> &'a ComponentInstance {
216 self.assert_belongs_to(store.id());
217 store.component_instance(self.instance)
218 }
219
220 /// Mutable version of `get` above.
221 ///

Callers 15

typecheckMethod · 0.45
ty_Method · 0.45
ty_indexMethod · 0.45
lifted_core_funcMethod · 0.45
post_return_core_funcMethod · 0.45
abi_asyncMethod · 0.45
abi_infoMethod · 0.45
post_return_implMethod · 0.45
load_resultsMethod · 0.45
storeMethod · 0.45
get_funcMethod · 0.45
_get_exportMethod · 0.45

Calls 3

component_instanceMethod · 0.80
assert_belongs_toMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected