Struct sway_types::CallFrame
source · pub struct CallFrame { /* private fields */ }
Expand description
Contract call stack frame representation
Implementations§
source§impl CallFrame
impl CallFrame
pub fn new( contract: ContractId, source: Source, range: Range, program: Vec<Instruction> ) -> Result<Self>
pub const fn id(&self) -> &Id
pub const fn source(&self) -> &Source
pub const fn range(&self) -> &Range
pub fn program(&self) -> &[Instruction]
pub fn contract(&self) -> ContractId
Trait Implementations§
source§impl<'de> Deserialize<'de> for CallFrame
impl<'de> Deserialize<'de> for CallFrame
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CallFrame> for CallFrame
impl PartialEq<CallFrame> for CallFrame
impl Eq for CallFrame
impl StructuralEq for CallFrame
impl StructuralPartialEq for CallFrame
Auto Trait Implementations§
impl RefUnwindSafe for CallFrame
impl Send for CallFrame
impl Sync for CallFrame
impl Unpin for CallFrame
impl UnwindSafe for CallFrame
Blanket Implementations§
§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