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

Method get_by_index

cranelift/interpreter/src/environment.rs:41–43  ·  view source on GitHub ↗

Retrieve a function by its index in the function store.

(&self, index: FuncIndex)

Source from the content-addressed store, hash-verified

39
40 /// Retrieve a function by its index in the function store.
41 pub fn get_by_index(&self, index: FuncIndex) -> Option<&'a Function> {
42 self.functions.get(index).cloned()
43 }
44
45 /// Retrieve a function by its name.
46 pub fn get_by_name(&self, name: &str) -> Option<&'a Function> {

Callers 3

get_by_nameMethod · 0.80
call_by_indexMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected