pub enum BinaryIndexedView<'a> {
Module(&'a CompiledModule),
Script(&'a CompiledScript),
}
Variants§
Module(&'a CompiledModule)
Script(&'a CompiledScript)
Implementations§
source§impl<'a> BinaryIndexedView<'a>
impl<'a> BinaryIndexedView<'a>
pub fn module_handles(&self) -> &[ModuleHandle]
pub fn struct_handles(&self) -> &[StructHandle]
pub fn function_handles(&self) -> &[FunctionHandle]
pub fn identifiers(&self) -> &[Identifier]
pub fn identifier_at(&self, idx: IdentifierIndex) -> &IdentStr
pub fn address_identifiers(&self) -> &[AccountAddress]
pub fn address_identifier_at( &self, idx: AddressIdentifierIndex ) -> &AccountAddress
pub fn constant_pool(&self) -> &[Constant]
pub fn constant_at(&self, idx: ConstantPoolIndex) -> &Constant
pub fn signatures(&self) -> &[Signature]
pub fn signature_at(&self, idx: SignatureIndex) -> &Signature
pub fn module_handle_at(&self, idx: ModuleHandleIndex) -> &ModuleHandle
pub fn struct_handle_at(&self, idx: StructHandleIndex) -> &StructHandle
pub fn function_handle_at(&self, idx: FunctionHandleIndex) -> &FunctionHandle
pub fn function_instantiations(&self) -> &[FunctionInstantiation]
pub fn function_instantiation_at( &self, idx: FunctionInstantiationIndex ) -> &FunctionInstantiation
pub fn field_handles(&self) -> Option<&[FieldHandle]>
pub fn field_handle_at( &self, idx: FieldHandleIndex ) -> PartialVMResult<&FieldHandle>
pub fn friend_decls(&self) -> Option<&[ModuleHandle]>
pub fn struct_instantiations(&self) -> Option<&[StructDefInstantiation]>
pub fn struct_instantiation_at( &self, idx: StructDefInstantiationIndex ) -> PartialVMResult<&StructDefInstantiation>
pub fn field_instantiations(&self) -> Option<&[FieldInstantiation]>
pub fn field_instantiation_at( &self, idx: FieldInstantiationIndex ) -> PartialVMResult<&FieldInstantiation>
pub fn struct_defs(&self) -> Option<&[StructDefinition]>
pub fn struct_def_at( &self, idx: StructDefinitionIndex ) -> PartialVMResult<&StructDefinition>
pub fn function_defs(&self) -> Option<&[FunctionDefinition]>
pub fn function_def_at( &self, idx: FunctionDefinitionIndex ) -> PartialVMResult<&FunctionDefinition>
pub fn abilities( &self, ty: &SignatureToken, constraints: &[AbilitySet] ) -> PartialVMResult<AbilitySet>
pub fn self_handle_idx(&self) -> Option<ModuleHandleIndex>
pub fn module_id_for_handle(&self, module_handle: &ModuleHandle) -> ModuleId
pub fn self_id(&self) -> Option<ModuleId>
pub fn version(&self) -> u32
Trait Implementations§
source§impl<'a> Clone for BinaryIndexedView<'a>
impl<'a> Clone for BinaryIndexedView<'a>
source§fn clone(&self) -> BinaryIndexedView<'a>
fn clone(&self) -> BinaryIndexedView<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more