[−][src]Struct solana_libra_bytecode_verifier::verifier::VerifiedProgram
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]
program: CompiledProgram,
deps: impl IntoIterator<Item = &'a VerifiedModule>
) -> Result<Self, Vec<VMStatus>>
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]
fn clone(&self) -> VerifiedProgram<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &VerifiedProgram<'a>) -> bool
[src]
fn ne(&self, other: &VerifiedProgram<'a>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,