[][src]Trait solana_libra_vm::access::ScriptAccess

pub trait ScriptAccess: Sync {
    fn as_script(&self) -> &CompiledScript;

    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 type_signature_at(&self, idx: TypeSignatureIndex) -> &TypeSignature { ... }
fn function_signature_at(
        &self,
        idx: FunctionSignatureIndex
    ) -> &FunctionSignature { ... }
fn locals_signature_at(&self, idx: LocalsSignatureIndex) -> &LocalsSignature { ... }
fn identifier_at(&self, idx: IdentifierIndex) -> &IdentStr { ... }
fn byte_array_at(&self, idx: ByteArrayPoolIndex) -> &ByteArray { ... }
fn address_at(&self, idx: AddressPoolIndex) -> &AccountAddress { ... }
fn module_handles(&self) -> &[ModuleHandle] { ... }
fn struct_handles(&self) -> &[StructHandle] { ... }
fn function_handles(&self) -> &[FunctionHandle] { ... }
fn type_signatures(&self) -> &[TypeSignature] { ... }
fn function_signatures(&self) -> &[FunctionSignature] { ... }
fn locals_signatures(&self) -> &[LocalsSignature] { ... }
fn byte_array_pool(&self) -> &[ByteArray] { ... }
fn address_pool(&self) -> &[AccountAddress] { ... }
fn identifiers(&self) -> &[Identifier] { ... }
fn main(&self) -> &FunctionDefinition { ... } }

Represents accessors for a compiled script.

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

Required methods

fn as_script(&self) -> &CompiledScript

Returns the CompiledScript that will be used for accesses.

Loading content...

Provided methods

Loading content...

Implementors

impl ScriptAccess for CompiledScript[src]

Loading content...