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

Method as_ref

crates/wasmtime/src/runtime/instance.rs:749–757  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

747 }
748
749 pub(crate) fn as_ref(&self) -> Imports<'_> {
750 Imports {
751 tables: self.tables.values().as_slice(),
752 globals: self.globals.values().as_slice(),
753 memories: self.memories.values().as_slice(),
754 functions: self.functions.values().as_slice(),
755 tags: self.tags.values().as_slice(),
756 }
757 }
758}
759
760/// An instance, pre-instantiation, that is ready to be instantiated.

Callers 4

newMethod · 0.45
new_asyncMethod · 0.45
instantiateMethod · 0.45
instantiate_asyncMethod · 0.45

Calls 2

as_sliceMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected