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

Method get_name

cranelift/module/src/module.rs:833–835  ·  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

831 /// Get the module identifier for a given name, if that name
832 /// has been declared.
833 fn get_name(&self, name: &str) -> Option<FuncOrDataId> {
834 self.declarations().get_name(name)
835 }
836
837 /// Return the target information needed by frontends to produce Cranelift IR
838 /// for the current target.

Callers

nothing calls this directly

Implementers 3

module.rscranelift/module/src/module.rs
backend.rscranelift/jit/src/backend.rs
backend.rscranelift/object/src/backend.rs

Calls 2

get_nameMethod · 0.45
declarationsMethod · 0.45

Tested by

no test coverage detected