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

Method module

crates/wasmtime/src/runtime/instance.rs:383–385  ·  view source on GitHub ↗

Get this instance's module.

(&self, store: impl Into<StoreContext<'a, T>>)

Source from the content-addressed store, hash-verified

381
382 /// Get this instance's module.
383 pub fn module<'a, T: 'static>(&self, store: impl Into<StoreContext<'a, T>>) -> &'a Module {
384 self._module(store.into().0)
385 }
386
387 pub(crate) fn _module<'a>(&self, store: &'a StoreOpaque) -> &'a Module {
388 store.module_for_instance(self.id).unwrap()

Callers 2

reserveMethod · 0.45
typecheckFunction · 0.45

Calls 1

_moduleMethod · 0.80

Tested by

no test coverage detected