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

Method defined_func_indices

crates/environ/src/module.rs:556–558  ·  view source on GitHub ↗

Returns an iterator over all of the defined function indices in this module.

(&self)

Source from the content-addressed store, hash-verified

554 /// Returns an iterator over all of the defined function indices in this
555 /// module.
556 pub fn defined_func_indices(&self) -> impl ExactSizeIterator<Item = DefinedFuncIndex> + use<> {
557 (0..self.functions.len() - self.num_imported_funcs).map(|i| DefinedFuncIndex::new(i))
558 }
559
560 /// Returns the number of functions defined by this module itself: all
561 /// functions minus imported functions.

Callers 7

newMethod · 0.80
indexesMethod · 0.80
build_function_addr_mapFunction · 0.80
newMethod · 0.80
functionsMethod · 0.80
module_symbolsFunction · 0.80

Calls 3

newFunction · 0.50
mapMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected