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

Method from_wasmtime

crates/wasmtime/src/runtime/component/instance.rs:55–59  ·  view source on GitHub ↗

Creates a raw `Instance` from the internal identifiers within the store.

(store: &StoreOpaque, id: ComponentInstanceId)

Source from the content-addressed store, hash-verified

53impl Instance {
54 /// Creates a raw `Instance` from the internal identifiers within the store.
55 pub(crate) fn from_wasmtime(store: &StoreOpaque, id: ComponentInstanceId) -> Instance {
56 Instance {
57 id: StoreComponentInstanceId::new(store.id(), id),
58 }
59 }
60
61 /// Looks up an exported function by name within this [`Instance`].
62 ///

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected