Trait move_binary_format::access::ScriptAccess
source · pub trait ScriptAccess: Sync {
Show 20 methods
// Required method
fn as_script(&self) -> &CompiledScript;
// Provided methods
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 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 function_instantiation_at(
&self,
idx: FunctionInstantiationIndex
) -> &FunctionInstantiation { ... }
fn module_handles(&self) -> &[ModuleHandle] { ... }
fn struct_handles(&self) -> &[StructHandle] { ... }
fn function_handles(&self) -> &[FunctionHandle] { ... }
fn function_instantiations(&self) -> &[FunctionInstantiation] { ... }
fn signatures(&self) -> &[Signature] { ... }
fn constant_pool(&self) -> &[Constant] { ... }
fn identifiers(&self) -> &[Identifier] { ... }
fn address_identifiers(&self) -> &[AccountAddress] { ... }
fn version(&self) -> u32 { ... }
fn code(&self) -> &CodeUnit { ... }
fn immediate_dependencies(&self) -> Vec<ModuleId> ⓘ { ... }
}
Expand description
Represents accessors for a compiled script.
This is a trait to allow working across different wrappers for CompiledScript
.
Required Methods§
sourcefn as_script(&self) -> &CompiledScript
fn as_script(&self) -> &CompiledScript
Returns the CompiledScript
that will be used for accesses.