Struct fuel_vm::state::StateTransitionRef
source · pub struct StateTransitionRef<'a, Tx> { /* private fields */ }
Expand description
Zero-copy Representation of the result of a transaction execution bound to the lifetime of the VM.
Implementations§
source§impl<'a, Tx> StateTransitionRef<'a, Tx>
impl<'a, Tx> StateTransitionRef<'a, Tx>
sourcepub const fn new(
state: ProgramState,
tx: &'a Tx,
receipts: &'a [Receipt]
) -> Self
pub const fn new( state: ProgramState, tx: &'a Tx, receipts: &'a [Receipt] ) -> Self
Create a new by reference state transition representation.
sourcepub const fn state(&self) -> &ProgramState
pub const fn state(&self) -> &ProgramState
Program state representation.
sourcepub const fn receipts(&self) -> &[Receipt]
pub const fn receipts(&self) -> &[Receipt]
Transaction receipts representing the state transition.
sourcepub fn should_revert(&self) -> bool
pub fn should_revert(&self) -> bool
Flag whether the client should revert after execution.
Trait Implementations§
source§impl<'a, Tx: Clone> Clone for StateTransitionRef<'a, Tx>
impl<'a, Tx: Clone> Clone for StateTransitionRef<'a, Tx>
source§fn clone(&self) -> StateTransitionRef<'a, Tx>
fn clone(&self) -> StateTransitionRef<'a, Tx>
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<'a, Tx: Debug> Debug for StateTransitionRef<'a, Tx>
impl<'a, Tx: Debug> Debug for StateTransitionRef<'a, Tx>
source§impl<'a, Tx> From<&'a StateTransition<Tx>> for StateTransitionRef<'a, Tx>
impl<'a, Tx> From<&'a StateTransition<Tx>> for StateTransitionRef<'a, Tx>
source§fn from(t: &'a StateTransition<Tx>) -> StateTransitionRef<'a, Tx>
fn from(t: &'a StateTransition<Tx>) -> StateTransitionRef<'a, Tx>
Converts to this type from the input type.
source§impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for ProgramState
impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for ProgramState
source§fn from(t: StateTransitionRef<'a, Tx>) -> ProgramState
fn from(t: StateTransitionRef<'a, Tx>) -> ProgramState
Converts to this type from the input type.
source§impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for StateTransition<Tx>
impl<'a, Tx: Clone> From<StateTransitionRef<'a, Tx>> for StateTransition<Tx>
source§fn from(t: StateTransitionRef<'_, Tx>) -> StateTransition<Tx>
fn from(t: StateTransitionRef<'_, Tx>) -> StateTransition<Tx>
Converts to this type from the input type.
source§impl<'a, Tx: PartialEq> PartialEq<StateTransitionRef<'a, Tx>> for StateTransitionRef<'a, Tx>
impl<'a, Tx: PartialEq> PartialEq<StateTransitionRef<'a, Tx>> for StateTransitionRef<'a, Tx>
source§fn eq(&self, other: &StateTransitionRef<'a, Tx>) -> bool
fn eq(&self, other: &StateTransitionRef<'a, Tx>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a, Tx: Copy> Copy for StateTransitionRef<'a, Tx>
impl<'a, Tx: Eq> Eq for StateTransitionRef<'a, Tx>
impl<'a, Tx> StructuralEq for StateTransitionRef<'a, Tx>
impl<'a, Tx> StructuralPartialEq for StateTransitionRef<'a, Tx>
Auto Trait Implementations§
impl<'a, Tx> RefUnwindSafe for StateTransitionRef<'a, Tx>where Tx: RefUnwindSafe,
impl<'a, Tx> Send for StateTransitionRef<'a, Tx>where Tx: Sync,
impl<'a, Tx> Sync for StateTransitionRef<'a, Tx>where Tx: Sync,
impl<'a, Tx> Unpin for StateTransitionRef<'a, Tx>
impl<'a, Tx> UnwindSafe for StateTransitionRef<'a, Tx>where Tx: RefUnwindSafe,
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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