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

Method constant_at

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

Source from the content-addressed store, hash-verified

235 }
236
237 fn constant_at(&self, idx: ConstantPoolIndex) -> &Constant {
238 &self.as_script().constant_pool[idx.into_index()]
239 }
240
241 fn function_instantiation_at(&self, idx: FunctionInstantiationIndex) -> &FunctionInstantiation {
242 &self.as_script().function_instantiations[idx.into_index()]

Callers

nothing calls this directly

Implementers 1

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

Calls 1

as_scriptMethod · 0.80

Tested by

no test coverage detected