MCPcopy Create free account
hub / github.com/diem/move / into_function

Method into_function

language/move-model/src/model.rs:2052–2058  ·  view source on GitHub ↗

Gets a FunctionEnv by id.

(self, id: FunId)

Source from the content-addressed store, hash-verified

2050
2051 /// Gets a FunctionEnv by id.
2052 pub fn into_function(self, id: FunId) -> FunctionEnv<'env> {
2053 let data = self.data.function_data.get(&id).expect("FunId undefined");
2054 FunctionEnv {
2055 module_env: self,
2056 data,
2057 }
2058 }
2059
2060 /// Gets the number of functions in this module.
2061 pub fn get_function_count(&self) -> usize {

Callers 7

instrument_callMethod · 0.80
analyze_bytecodeMethod · 0.80
fmtMethod · 0.80
translate_bytecodeMethod · 0.80
get_functionMethod · 0.80
get_function_qidMethod · 0.80
get_used_functionMethod · 0.80

Calls 2

expectMethod · 0.80
getMethod · 0.45

Tested by 1

instrument_callMethod · 0.64