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

Method instance_mut

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

Same as [`Self::instance`], but for mutability.

(&self, store: &'b mut StoreOpaque)

Source from the content-addressed store, hash-verified

1028
1029 /// Same as [`Self::instance`], but for mutability.
1030 fn instance_mut<'b>(&self, store: &'b mut StoreOpaque) -> Pin<&'b mut ComponentInstance> {
1031 store.store_data_mut().component_instance_mut(self.id)
1032 }
1033
1034 // NB: This method is only intended to be called during the instantiation
1035 // process because the `Arc::get_mut` here is fallible and won't generally

Callers 8

runMethod · 0.45
resourceMethod · 0.45
extract_memoryMethod · 0.45
extract_reallocMethod · 0.45
extract_callbackMethod · 0.45
extract_post_returnMethod · 0.45
extract_tableMethod · 0.45

Calls 2

store_data_mutMethod · 0.80

Tested by

no test coverage detected