[−][src]Struct solana_libra_vm::file_format::CompiledModuleMut
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]
pub fn deserialize_no_check_bounds(binary: &[u8]) -> BinaryLoaderResult<Self>
[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]
fn get_field_def_at(
&self,
idx: FieldDefinitionIndex
) -> Result<&FieldDefinition>
[src]
&self,
idx: FieldDefinitionIndex
) -> Result<&FieldDefinition>
fn get_module_at(&self, idx: ModuleHandleIndex) -> Result<&ModuleHandle>
[src]
fn get_struct_at(&self, idx: StructHandleIndex) -> Result<&StructHandle>
[src]
fn get_function_at(&self, idx: FunctionHandleIndex) -> Result<&FunctionHandle>
[src]
fn get_string_at(&self, idx: StringPoolIndex) -> Result<&String>
[src]
fn get_address_at(&self, idx: AddressPoolIndex) -> Result<&AccountAddress>
[src]
fn get_type_signature_at(
&self,
idx: TypeSignatureIndex
) -> Result<&TypeSignature>
[src]
&self,
idx: TypeSignatureIndex
) -> Result<&TypeSignature>
fn get_function_signature_at(
&self,
idx: FunctionSignatureIndex
) -> Result<&FunctionSignature>
[src]
&self,
idx: FunctionSignatureIndex
) -> Result<&FunctionSignature>
fn get_locals_signature_at(
&self,
idx: LocalsSignatureIndex
) -> Result<&LocalsSignature>
[src]
&self,
idx: LocalsSignatureIndex
) -> Result<&LocalsSignature>
impl Clone for CompiledModuleMut
[src]
fn clone(&self) -> 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]
fn default() -> CompiledModuleMut
[src]
impl PartialEq<CompiledModuleMut> for CompiledModuleMut
[src]
fn eq(&self, other: &CompiledModuleMut) -> bool
[src]
fn ne(&self, other: &CompiledModuleMut) -> bool
[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_with(size: Self::Parameters) -> Self::Strategy
[src]
fn arbitrary() -> Self::Strategy
[src]
Generates a [Strategy
] for producing arbitrary values of type the implementing type (Self
). Read more
Auto Trait Implementations
impl Sync for CompiledModuleMut
impl Send for CompiledModuleMut
impl Unpin for CompiledModuleMut
impl RefUnwindSafe for CompiledModuleMut
impl UnwindSafe for CompiledModuleMut
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Erased for T
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,