[][src]Struct solana_libra_vm::file_format::CompiledModuleMut

pub struct CompiledModuleMut {
    pub module_handles: Vec<ModuleHandle>,
    pub struct_handles: Vec<StructHandle>,
    pub function_handles: Vec<FunctionHandle>,
    pub type_signatures: TypeSignaturePool,
    pub function_signatures: FunctionSignaturePool,
    pub locals_signatures: LocalsSignaturePool,
    pub string_pool: StringPool,
    pub byte_array_pool: ByteArrayPool,
    pub address_pool: AddressPool,
    pub struct_defs: Vec<StructDefinition>,
    pub field_defs: Vec<FieldDefinition>,
    pub function_defs: Vec<FunctionDefinition>,
}

A mutable version of CompiledModule. Converting to a CompiledModule requires this to pass the bounds checker.

Fields

module_handles: Vec<ModuleHandle>

Handles to external modules and self at position 0.

struct_handles: Vec<StructHandle>

Handles to external and internal types.

function_handles: Vec<FunctionHandle>

Handles to external and internal functions.

type_signatures: TypeSignaturePool

Type pool. A definition for all types used in the module.

function_signatures: FunctionSignaturePool

Function signature pool. Represents all function signatures defined or used in the module.

locals_signatures: LocalsSignaturePool

Locals signature pool. The signature for all locals of the functions defined in the module.

string_pool: StringPool

String pool. All literals and identifiers used in the module.

byte_array_pool: ByteArrayPool

ByteArray pool. The byte array literals used in the module.

address_pool: AddressPool

Address pool. The address literals used in the module. Those include literals for code references (ModuleHandle).

struct_defs: Vec<StructDefinition>

Types defined in this module.

field_defs: Vec<FieldDefinition>

Fields defined on types in this module.

function_defs: Vec<FunctionDefinition>

Function defined in this module.

Methods

impl CompiledModuleMut[src]

impl CompiledModuleMut[src]

pub fn kind_count(&self, kind: IndexKind) -> usize[src]

Returns the count of a specific IndexKind

pub fn freeze(self) -> Result<CompiledModule, Vec<VerificationError>>[src]

Converts this instance into CompiledModule after verifying it for basic internal consistency. This includes bounds checks but no others.

impl CompiledModuleMut[src]

pub fn serialize(&self, binary: &mut Vec<u8>) -> Result<()>[src]

Serializes this into a binary format.

This is intended mainly for test code. Production code will typically use CompiledModule::serialize.

Trait Implementations

impl TableAccess for CompiledModuleMut[src]

impl Clone for CompiledModuleMut[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for CompiledModuleMut[src]

impl PartialEq<CompiledModuleMut> for CompiledModuleMut[src]

impl Eq for CompiledModuleMut[src]

impl Debug for CompiledModuleMut[src]

impl Arbitrary for CompiledModuleMut[src]

type Strategy = BoxedStrategy<Self>

The type of [Strategy] used to generate values of type Self. Read more

type Parameters = usize

The size of the compiled module.

fn arbitrary() -> Self::Strategy[src]

Generates a [Strategy] for producing arbitrary values of type the implementing type (Self). Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]