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

Method instance

crates/wasmtime/src/runtime/component/linker.rs:163–165  ·  view source on GitHub ↗

Returns a builder for the named instance specified. # Errors Returns an error if `name` is already defined within the linker.

(&mut self, name: &str)

Source from the content-addressed store, hash-verified

161 ///
162 /// Returns an error if `name` is already defined within the linker.
163 pub fn instance(&mut self, name: &str) -> Result<LinkerInstance<'_, T>> {
164 self.root().into_instance(name)
165 }
166
167 fn typecheck<'a>(&'a self, component: &'a Component) -> Result<TypeChecker<'a>> {
168 let mut cx = TypeChecker {

Callers 1

stub_itemMethod · 0.45

Calls 3

into_instanceMethod · 0.80
rootMethod · 0.45
as_mutMethod · 0.45

Tested by

no test coverage detected