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

Method get_name

cranelift/module/src/module.rs:695–697  ·  view source on GitHub ↗

Get the module identifier for a given name, if that name has been declared.

(&self, name: &str)

Source from the content-addressed store, hash-verified

693 /// Get the module identifier for a given name, if that name
694 /// has been declared.
695 pub fn get_name(&self, name: &str) -> Option<FuncOrDataId> {
696 self.names.get(name).copied()
697 }
698
699 /// Get an iterator of all function declarations
700 pub fn get_functions(&self) -> impl Iterator<Item = (FuncId, &FunctionDeclaration)> {

Callers 2

get_nameMethod · 0.45
executeMethod · 0.45

Calls 2

copiedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected