Struct sway_types::CallFrame
source · [−]pub struct CallFrame { /* private fields */ }
Expand description
Contract call stack frame representation
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for CallFrame
impl<'de> Deserialize<'de> for CallFrame
sourcefn 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
sourceimpl 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
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