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

Method insert

crates/wasmtime/src/runtime/component/linker.rs:898–901  ·  view source on GitHub ↗
(&mut self, name: &str, item: Definition)

Source from the content-addressed store, hash-verified

896 }
897
898 fn insert(&mut self, name: &str, item: Definition) -> Result<Atom> {
899 self.map
900 .insert(name, self.strings, self.allow_shadowing, item)
901 }
902
903 fn get(&self, name: &str) -> Option<&Definition> {
904 self.map.get(name, self.strings)

Callers 15

registerMethod · 0.45
register_codeFunction · 0.45
func_wrapMethod · 0.45
func_wrap_asyncMethod · 0.45
func_wrap_concurrentMethod · 0.45
func_newMethod · 0.45
func_new_asyncMethod · 0.45
func_new_concurrentMethod · 0.45
moduleMethod · 0.45
resourceMethod · 0.45
resource_asyncMethod · 0.45
resource_concurrentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected