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§
fn iter_instruction_effects( &self, ) -> impl Iterator<Item = ManifestInstructionEffect<'_>>
fn iter_cloned_instructions(&self) -> impl Iterator<Item = InstructionV2>
fn instruction_count(&self) -> usize
Sourcefn instruction_effect(&self, index: usize) -> ManifestInstructionEffect<'_>
fn instruction_effect(&self, index: usize) -> ManifestInstructionEffect<'_>
Panics if index is out of bounds
Provided Methods§
fn validate( &self, ruleset: ValidationRuleset, ) -> Result<(), ManifestValidationError>
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.