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

Method struct_def_at

language/move-binary-format/src/binary_views.rs:220–227  ·  view source on GitHub ↗
(&self, idx: StructDefinitionIndex)

Source from the content-addressed store, hash-verified

218 }
219
220 pub fn struct_def_at(&self, idx: StructDefinitionIndex) -> PartialVMResult<&StructDefinition> {
221 match self {
222 BinaryIndexedView::Module(module) => Ok(module.struct_def_at(idx)),
223 BinaryIndexedView::Script(_) => {
224 Err(PartialVMError::new(StatusCode::INVALID_OPERATION_IN_SCRIPT))
225 }
226 }
227 }
228
229 pub fn function_defs(&self) -> Option<&[FunctionDefinition]> {
230 match self {

Callers 15

get_struct_defMethod · 0.45
name_for_fieldMethod · 0.45
type_for_fieldMethod · 0.45
get_field_namesMethod · 0.45
stack_has_structFunction · 0.45
struct_abilitiesFunction · 0.45
stack_struct_has_fieldFunction · 0.45
stack_struct_popnFunction · 0.45

Calls

no outgoing calls

Tested by 2

create_struct_valueFunction · 0.36
bytecode_movefromFunction · 0.36