[][src]Struct solana_libra_bytecode_verifier::verifier::VerifiedProgram

pub struct VerifiedProgram<'a> { /* fields omitted */ }

A program that has been verified for internal consistency.

This includes cross-module checking for the base dependencies.

Methods

impl<'a> VerifiedProgram<'a>[src]

pub fn new(
    program: CompiledProgram,
    deps: impl IntoIterator<Item = &'a VerifiedModule>
) -> Result<Self, Vec<VMStatus>>
[src]

Creates a new VerifiedProgram after verifying the provided CompiledProgram against the provided base dependencies.

On error, returns a list of verification statuses.

pub fn script(&self) -> &VerifiedScript[src]

Returns a reference to the script.

pub fn modules(&self) -> &[VerifiedModule][src]

Returns a reference to the modules in this program.

pub fn deps(&self) -> &[&'a VerifiedModule][src]

Returns the dependencies this program was verified against.

pub fn into_inner(self) -> CompiledProgram[src]

Converts this VerifiedProgram into a CompiledProgram instance.

Converting back would require re-verifying this program.

Trait Implementations

impl<'a> Clone for VerifiedProgram<'a>[src]

impl<'a> Debug for VerifiedProgram<'a>[src]

impl<'a> Display for VerifiedProgram<'a>[src]

impl<'a> Eq for VerifiedProgram<'a>[src]

impl<'a> PartialEq<VerifiedProgram<'a>> for VerifiedProgram<'a>[src]

impl<'a> StructuralEq for VerifiedProgram<'a>[src]

impl<'a> StructuralPartialEq for VerifiedProgram<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for VerifiedProgram<'a>

impl<'a> Send for VerifiedProgram<'a>

impl<'a> Sync for VerifiedProgram<'a>

impl<'a> Unpin for VerifiedProgram<'a>

impl<'a> UnwindSafe for VerifiedProgram<'a>

Blanket Implementations

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,