Struct fuel_asm::InstructionResult
source · pub struct InstructionResult { /* private fields */ }
Expand description
Describe a panic reason with the instruction that generated it
Implementations§
source§impl InstructionResult
impl InstructionResult
sourcepub const fn error(reason: PanicReason, instruction: Instruction) -> Self
pub const fn error(reason: PanicReason, instruction: Instruction) -> Self
Represents an error described by a reason and an instruction.
sourcepub const fn reason(&self) -> &PanicReason
pub const fn reason(&self) -> &PanicReason
Underlying panic reason
sourcepub const fn instruction(&self) -> &Instruction
pub const fn instruction(&self) -> &Instruction
Underlying instruction
sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
This result represents success?
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for InstructionResult
impl<'arbitrary> Arbitrary<'arbitrary> for InstructionResult
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for InstructionResult
impl Clone for InstructionResult
source§fn clone(&self) -> InstructionResult
fn clone(&self) -> InstructionResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstructionResult
impl Debug for InstructionResult
source§impl<'de> Deserialize<'de> for InstructionResult
impl<'de> Deserialize<'de> for InstructionResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<InstructionResult> for Instruction
impl From<InstructionResult> for Instruction
source§fn from(r: InstructionResult) -> Self
fn from(r: InstructionResult) -> Self
Converts to this type from the input type.
source§impl From<InstructionResult> for Opcode
impl From<InstructionResult> for Opcode
source§fn from(r: InstructionResult) -> Self
fn from(r: InstructionResult) -> Self
Converts to this type from the input type.
source§impl From<InstructionResult> for PanicReason
impl From<InstructionResult> for PanicReason
source§fn from(r: InstructionResult) -> Self
fn from(r: InstructionResult) -> Self
Converts to this type from the input type.
source§impl From<InstructionResult> for Word
impl From<InstructionResult> for Word
source§fn from(r: InstructionResult) -> Word
fn from(r: InstructionResult) -> Word
Converts to this type from the input type.
source§impl From<u64> for InstructionResult
impl From<u64> for InstructionResult
source§impl Hash for InstructionResult
impl Hash for InstructionResult
source§impl PartialEq<InstructionResult> for InstructionResult
impl PartialEq<InstructionResult> for InstructionResult
source§fn eq(&self, other: &InstructionResult) -> bool
fn eq(&self, other: &InstructionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.