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

Method get_function

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

Return the `FunctionEnv` for `fun`

(&self, fun: QualifiedId<FunId>)

Source from the content-addressed store, hash-verified

1361
1362 /// Return the `FunctionEnv` for `fun`
1363 pub fn get_function(&self, fun: QualifiedId<FunId>) -> FunctionEnv<'_> {
1364 self.get_module(fun.module_id).into_function(fun.id)
1365 }
1366
1367 /// Return the `StructEnv` for `str`
1368 pub fn get_struct(&self, str: QualifiedId<StructId>) -> StructEnv<'_> {

Callers 15

runFunction · 0.80
print_expMethod · 0.80
print_conditionMethod · 0.80
handle_call_functionMethod · 0.80
print_script_reachFunction · 0.80
executeMethod · 0.80
dump_resultMethod · 0.80
initializeMethod · 0.80
mark_callees_inlinedMethod · 0.80

Calls 3

into_functionMethod · 0.80
get_moduleMethod · 0.45
cloneMethod · 0.45

Tested by 2

test_runnerFunction · 0.64