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
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more