fuel_vm/
constraints.rs

1//! Types to help constrain inputs to functions to only what is used.
2
3use fuel_types::ContractId;
4
5pub mod reg_key;
6
7/// Location of an instructing collected during runtime
8#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
9pub struct InstructionLocation {
10    /// Context, i.e. current contract. None if running a script.
11    pub context: Option<ContractId>,
12    /// Offset from the IS register
13    pub offset: u64,
14}