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

Method import_key

crates/wasmtime/src/runtime/linker.rs:1060–1065  ·  view source on GitHub ↗
(&mut self, module: &str, name: Option<&str>)

Source from the content-addressed store, hash-verified

1058 }
1059
1060 fn import_key(&mut self, module: &str, name: Option<&str>) -> Result<ImportKey, OutOfMemory> {
1061 Ok(ImportKey {
1062 module: self.pool.insert(module)?,
1063 name: name.map(|name| self.pool.insert(name)).transpose()?,
1064 })
1065 }
1066
1067 /// Attempts to instantiate the `module` provided.
1068 ///

Callers 6

defineMethod · 0.80
define_nameMethod · 0.80
func_insertMethod · 0.80
instanceMethod · 0.80
commandMethod · 0.80
aliasMethod · 0.80

Calls 3

OkFunction · 0.85
insertMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected