Struct fuel_tx::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: u32) -> PanicInstruction
pub const fn error(reason: PanicReason, instruction: u32) -> PanicInstruction
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) -> &u32
pub const fn instruction(&self) -> &u32
Underlying instruction
Trait Implementations§
source§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 From<PanicInstruction> for u64
impl From<PanicInstruction> for u64
source§fn from(r: PanicInstruction) -> u64
fn from(r: PanicInstruction) -> u64
Converts to this type from the input type.
source§impl From<u64> for PanicInstruction
impl From<u64> for PanicInstruction
source§fn from(val: u64) -> PanicInstruction
fn from(val: u64) -> PanicInstruction
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 ==
.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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more