Struct fuel_asm::PanicInstruction
source · pub struct PanicInstruction { /* private fields */ }
Expand description
Describe a panic reason with the instruction that generated it
Implementations§
source§impl PanicInstruction
impl PanicInstruction
sourcepub const fn error(reason: PanicReason, instruction: RawInstruction) -> Self
pub const fn error(reason: PanicReason, instruction: RawInstruction) -> 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) -> &RawInstruction
pub const fn instruction(&self) -> &RawInstruction
Underlying instruction
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for PanicInstruction
impl<'arbitrary> Arbitrary<'arbitrary> for PanicInstruction
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 PanicInstruction
impl Clone for PanicInstruction
source§fn clone(&self) -> PanicInstruction
fn clone(&self) -> PanicInstruction
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 PanicInstruction
impl Debug for PanicInstruction
source§impl<'de> Deserialize<'de> for PanicInstruction
impl<'de> Deserialize<'de> for PanicInstruction
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<PanicInstruction> for Word
impl From<PanicInstruction> for Word
source§fn from(r: PanicInstruction) -> Word
fn from(r: PanicInstruction) -> Word
Converts to this type from the input type.
source§impl Hash for PanicInstruction
impl Hash for PanicInstruction
source§impl PartialEq<PanicInstruction> for PanicInstruction
impl PartialEq<PanicInstruction> for PanicInstruction
source§fn eq(&self, other: &PanicInstruction) -> bool
fn eq(&self, other: &PanicInstruction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PanicInstruction
impl Serialize for PanicInstruction
source§impl TryFrom<u64> for PanicInstruction
impl TryFrom<u64> for PanicInstruction
impl Copy for PanicInstruction
impl Eq for PanicInstruction
impl StructuralEq for PanicInstruction
impl StructuralPartialEq for PanicInstruction
Auto Trait Implementations§
impl RefUnwindSafe for PanicInstruction
impl Send for PanicInstruction
impl Sync for PanicInstruction
impl Unpin for PanicInstruction
impl UnwindSafe for PanicInstruction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more