Struct fuel_tx::InstructionResult
source · [−]pub struct InstructionResult { /* private fields */ }
Expand description
Describe a panic reason with the instruction that generated it
Implementations
sourceimpl InstructionResult
impl InstructionResult
sourcepub const fn success() -> InstructionResult
pub const fn success() -> InstructionResult
Represents success
sourcepub const fn error(
reason: PanicReason,
instruction: Instruction
) -> InstructionResult
pub const fn error(
reason: PanicReason,
instruction: Instruction
) -> InstructionResult
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
sourceimpl Clone for InstructionResult
impl Clone for InstructionResult
sourcefn clone(&self) -> InstructionResult
fn clone(&self) -> InstructionResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstructionResult
impl Debug for InstructionResult
sourceimpl From<InstructionResult> for PanicReason
impl From<InstructionResult> for PanicReason
sourcefn from(r: InstructionResult) -> PanicReason
fn from(r: InstructionResult) -> PanicReason
Converts to this type from the input type.
sourceimpl From<u64> for InstructionResult
impl From<u64> for InstructionResult
sourcefn from(val: u64) -> InstructionResult
fn from(val: u64) -> InstructionResult
Converts to this type from the input type.
sourceimpl Hash for InstructionResult
impl Hash for InstructionResult
sourceimpl PartialEq<InstructionResult> for InstructionResult
impl PartialEq<InstructionResult> for InstructionResult
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &InstructionResult) -> bool
fn ne(&self, other: &InstructionResult) -> bool
This method tests for !=
.
impl Copy for InstructionResult
impl Eq for InstructionResult
impl StructuralEq for InstructionResult
impl StructuralPartialEq for InstructionResult
Auto Trait Implementations
impl RefUnwindSafe for InstructionResult
impl Send for InstructionResult
impl Sync for InstructionResult
impl Unpin for InstructionResult
impl UnwindSafe for InstructionResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more