Struct fuel_vm::constraints::InstructionLocation
source · pub struct InstructionLocation {
pub context: Option<ContractId>,
pub offset: u64,
}
Expand description
Location of an instructing collected during runtime
Fields§
§context: Option<ContractId>
Context, i.e. current contract. None if running a script.
offset: u64
Offset from the IS register
Trait Implementations§
source§impl Clone for InstructionLocation
impl Clone for InstructionLocation
source§fn clone(&self) -> InstructionLocation
fn clone(&self) -> InstructionLocation
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 InstructionLocation
impl Debug for InstructionLocation
source§impl Hash for InstructionLocation
impl Hash for InstructionLocation
source§impl Ord for InstructionLocation
impl Ord for InstructionLocation
source§fn cmp(&self, other: &InstructionLocation) -> Ordering
fn cmp(&self, other: &InstructionLocation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InstructionLocation> for InstructionLocation
impl PartialEq<InstructionLocation> for InstructionLocation
source§fn eq(&self, other: &InstructionLocation) -> bool
fn eq(&self, other: &InstructionLocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<InstructionLocation> for InstructionLocation
impl PartialOrd<InstructionLocation> for InstructionLocation
source§fn partial_cmp(&self, other: &InstructionLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &InstructionLocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InstructionLocation
impl Eq for InstructionLocation
impl StructuralEq for InstructionLocation
impl StructuralPartialEq for InstructionLocation
Auto Trait Implementations§
impl RefUnwindSafe for InstructionLocation
impl Send for InstructionLocation
impl Sync for InstructionLocation
impl Unpin for InstructionLocation
impl UnwindSafe for InstructionLocation
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