pub trait ModuleAccess: Sync {
Show 38 methods // Required method fn as_module(&self) -> &CompiledModule; // Provided methods fn self_handle_idx(&self) -> ModuleHandleIndex { ... } fn self_handle(&self) -> &ModuleHandle { ... } fn name(&self) -> &IdentStr { ... } fn address(&self) -> &AccountAddress { ... } fn module_handle_at(&self, idx: ModuleHandleIndex) -> &ModuleHandle { ... } fn struct_handle_at(&self, idx: StructHandleIndex) -> &StructHandle { ... } fn function_handle_at(&self, idx: FunctionHandleIndex) -> &FunctionHandle { ... } fn field_handle_at(&self, idx: FieldHandleIndex) -> &FieldHandle { ... } fn struct_instantiation_at( &self, idx: StructDefInstantiationIndex ) -> &StructDefInstantiation { ... } fn function_instantiation_at( &self, idx: FunctionInstantiationIndex ) -> &FunctionInstantiation { ... } fn field_instantiation_at( &self, idx: FieldInstantiationIndex ) -> &FieldInstantiation { ... } fn signature_at(&self, idx: SignatureIndex) -> &Signature { ... } fn identifier_at(&self, idx: IdentifierIndex) -> &IdentStr { ... } fn address_identifier_at( &self, idx: AddressIdentifierIndex ) -> &AccountAddress { ... } fn constant_at(&self, idx: ConstantPoolIndex) -> &Constant { ... } fn struct_def_at(&self, idx: StructDefinitionIndex) -> &StructDefinition { ... } fn function_def_at( &self, idx: FunctionDefinitionIndex ) -> &FunctionDefinition { ... } fn module_handles(&self) -> &[ModuleHandle] { ... } fn struct_handles(&self) -> &[StructHandle] { ... } fn function_handles(&self) -> &[FunctionHandle] { ... } fn field_handles(&self) -> &[FieldHandle] { ... } fn struct_instantiations(&self) -> &[StructDefInstantiation] { ... } fn function_instantiations(&self) -> &[FunctionInstantiation] { ... } fn field_instantiations(&self) -> &[FieldInstantiation] { ... } fn signatures(&self) -> &[Signature] { ... } fn constant_pool(&self) -> &[Constant] { ... } fn identifiers(&self) -> &[Identifier] { ... } fn address_identifiers(&self) -> &[AccountAddress] { ... } fn struct_defs(&self) -> &[StructDefinition] { ... } fn function_defs(&self) -> &[FunctionDefinition] { ... } fn friend_decls(&self) -> &[ModuleHandle] { ... } fn module_id_for_handle(&self, module_handle_idx: &ModuleHandle) -> ModuleId { ... } fn self_id(&self) -> ModuleId { ... } fn version(&self) -> u32 { ... } fn immediate_dependencies(&self) -> Vec<ModuleId> { ... } fn immediate_friends(&self) -> Vec<ModuleId> { ... } fn find_struct_def( &self, idx: StructHandleIndex ) -> Option<&StructDefinition> { ... }
}
Expand description

Represents accessors for a compiled module.

This is a trait to allow working across different wrappers for CompiledModule.

Required Methods§

source

fn as_module(&self) -> &CompiledModule

Returns the CompiledModule that will be used for accesses.

Provided Methods§

source

fn self_handle_idx(&self) -> ModuleHandleIndex

source

fn self_handle(&self) -> &ModuleHandle

Returns the ModuleHandle for self.

source

fn name(&self) -> &IdentStr

Returns the name of the module.

source

fn address(&self) -> &AccountAddress

Returns the address of the module.

source

fn module_handle_at(&self, idx: ModuleHandleIndex) -> &ModuleHandle

source

fn struct_handle_at(&self, idx: StructHandleIndex) -> &StructHandle

source

fn function_handle_at(&self, idx: FunctionHandleIndex) -> &FunctionHandle

source

fn field_handle_at(&self, idx: FieldHandleIndex) -> &FieldHandle

source

fn struct_instantiation_at( &self, idx: StructDefInstantiationIndex ) -> &StructDefInstantiation

source

fn function_instantiation_at( &self, idx: FunctionInstantiationIndex ) -> &FunctionInstantiation

source

fn field_instantiation_at( &self, idx: FieldInstantiationIndex ) -> &FieldInstantiation

source

fn signature_at(&self, idx: SignatureIndex) -> &Signature

source

fn identifier_at(&self, idx: IdentifierIndex) -> &IdentStr

source

fn address_identifier_at(&self, idx: AddressIdentifierIndex) -> &AccountAddress

source

fn constant_at(&self, idx: ConstantPoolIndex) -> &Constant

source

fn struct_def_at(&self, idx: StructDefinitionIndex) -> &StructDefinition

source

fn function_def_at(&self, idx: FunctionDefinitionIndex) -> &FunctionDefinition

source

fn module_handles(&self) -> &[ModuleHandle]

source

fn struct_handles(&self) -> &[StructHandle]

source

fn function_handles(&self) -> &[FunctionHandle]

source

fn field_handles(&self) -> &[FieldHandle]

source

fn struct_instantiations(&self) -> &[StructDefInstantiation]

source

fn function_instantiations(&self) -> &[FunctionInstantiation]

source

fn field_instantiations(&self) -> &[FieldInstantiation]

source

fn signatures(&self) -> &[Signature]

source

fn constant_pool(&self) -> &[Constant]

source

fn identifiers(&self) -> &[Identifier]

source

fn address_identifiers(&self) -> &[AccountAddress]

source

fn struct_defs(&self) -> &[StructDefinition]

source

fn function_defs(&self) -> &[FunctionDefinition]

source

fn friend_decls(&self) -> &[ModuleHandle]

source

fn module_id_for_handle(&self, module_handle_idx: &ModuleHandle) -> ModuleId

source

fn self_id(&self) -> ModuleId

source

fn version(&self) -> u32

source

fn immediate_dependencies(&self) -> Vec<ModuleId>

source

fn immediate_friends(&self) -> Vec<ModuleId>

source

fn find_struct_def(&self, idx: StructHandleIndex) -> Option<&StructDefinition>

Implementors§