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

Method instance

crates/wasmtime/src/runtime/store.rs:1649–1651  ·  view source on GitHub ↗
(&self, id: InstanceId)

Source from the content-addressed store, hash-verified

1647 /// validated to already belong to this store.
1648 #[inline]
1649 pub fn instance(&self, id: InstanceId) -> &vm::Instance {
1650 self.instances[id].handle.get()
1651 }
1652
1653 /// Accessor from `InstanceId` to `Pin<&mut vm::Instance>`.
1654 ///

Callers 4

try_newMethod · 0.45
module_for_instanceMethod · 0.45
for_each_tableMethod · 0.45
for_each_globalMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected