Trait move_binary_format::access::ModuleAccess
source · 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§
sourcefn as_module(&self) -> &CompiledModule
fn as_module(&self) -> &CompiledModule
Returns the CompiledModule
that will be used for accesses.
Provided Methods§
fn self_handle_idx(&self) -> ModuleHandleIndex
sourcefn self_handle(&self) -> &ModuleHandle
fn self_handle(&self) -> &ModuleHandle
Returns the ModuleHandle
for self
.