Skip to main content

IntoInstructionResult

Trait IntoInstructionResult 

Source
pub trait IntoInstructionResult {
    // Required method
    fn into_instruction_result(self) -> InstructionResult;
}
Expand description

Converts a halt reason into an [InstructionResult].

Abstracts over network-specific halt reason types (HaltReason, OpHaltReason) so that anvil code doesn’t need to match on each variant directly. Converts a network-specific halt reason into an [InstructionResult].

Required Methods§

Source

fn into_instruction_result(self) -> InstructionResult

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoInstructionResult for HaltReason

Source§

fn into_instruction_result(self) -> InstructionResult

Source§

impl IntoInstructionResult for OpHaltReason

Source§

fn into_instruction_result(self) -> InstructionResult

Source§

impl IntoInstructionResult for TempoHaltReason

Source§

fn into_instruction_result(self) -> InstructionResult

Implementors§