(&self, idx: StructDefinitionIndex)
| 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 { |
no outgoing calls