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

Method instance

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

Convenience helper to return the `&ComponentInstance` that's being instantiated.

(&self, store: &'b StoreOpaque)

Source from the content-addressed store, hash-verified

1023 /// Convenience helper to return the `&ComponentInstance` that's being
1024 /// instantiated.
1025 fn instance<'b>(&self, store: &'b StoreOpaque) -> &'b ComponentInstance {
1026 store.store_data().component_instance(self.id)
1027 }
1028
1029 /// Same as [`Self::instance`], but for mutability.
1030 fn instance_mut<'b>(&self, store: &'b mut StoreOpaque) -> Pin<&'b mut ComponentInstance> {

Callers 4

lookup_vmdefMethod · 0.45
runtime_instanceMethod · 0.45
lookup_vmexportFunction · 0.45
resourceMethod · 0.45

Calls 2

component_instanceMethod · 0.80
store_dataMethod · 0.80

Tested by

no test coverage detected