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

Method function_handle_at

language/move-binary-format/src/access.rs:55–60  ·  view source on GitHub ↗
(&self, idx: FunctionHandleIndex)

Source from the content-addressed store, hash-verified

53 }
54
55 fn function_handle_at(&self, idx: FunctionHandleIndex) -> &FunctionHandle {
56 let handle = &self.as_module().function_handles[idx.into_index()];
57 debug_assert!(handle.parameters.into_index() < self.as_module().signatures.len()); // invariant
58 debug_assert!(handle.return_.into_index() < self.as_module().signatures.len()); // invariant
59 handle
60 }
61
62 fn field_handle_at(&self, idx: FieldHandleIndex) -> &FieldHandle {
63 let handle = &self.as_module().field_handles[idx.into_index()];

Callers

nothing calls this directly

Implementers 1

access.rslanguage/move-binary-format/src/access

Calls 1

as_moduleMethod · 0.80

Tested by

no test coverage detected