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

Method indexes

crates/cranelift/src/debug.rs:150–154  ·  view source on GitHub ↗

Returns an iterator over all function indexes present in this compilation. Each function is additionally accompanied with its module index.

(&self)

Source from the content-addressed store, hash-verified

148 ///
149 /// Each function is additionally accompanied with its module index.
150 fn indexes(&self) -> impl Iterator<Item = (StaticModuleIndex, DefinedFuncIndex)> + use<'_> {
151 self.translations
152 .iter()
153 .flat_map(|(i, t)| t.module.defined_func_indices().map(move |j| (i, j)))
154 }
155
156 /// Returns an iterator of all functions with their module, symbol, and
157 /// function metadata that were produced during compilation.

Callers 2

functionsMethod · 0.80
generate_simulated_dwarfFunction · 0.80

Calls 3

defined_func_indicesMethod · 0.80
iterMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected