ReadableManifest

Trait ReadableManifest 

Source
pub trait ReadableManifest: ReadableManifestBase {
    // Required methods
    fn iter_instruction_effects(
        &self,
    ) -> impl Iterator<Item = ManifestInstructionEffect<'_>>;
    fn iter_cloned_instructions(&self) -> impl Iterator<Item = InstructionV2>;
    fn instruction_count(&self) -> usize;
    fn instruction_effect(&self, index: usize) -> ManifestInstructionEffect<'_>;

    // Provided method
    fn validate(
        &self,
        ruleset: ValidationRuleset,
    ) -> Result<(), ManifestValidationError> { ... }
}
Expand description

An object-safe version of ReadableManifest

Required Methods§

Source

fn iter_instruction_effects( &self, ) -> impl Iterator<Item = ManifestInstructionEffect<'_>>

Source

fn iter_cloned_instructions(&self) -> impl Iterator<Item = InstructionV2>

Source

fn instruction_count(&self) -> usize

Source

fn instruction_effect(&self, index: usize) -> ManifestInstructionEffect<'_>

Panics if index is out of bounds

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§