pub struct StateVariable {
pub name: String,
pub ty: String,
pub slot: String,
pub offset: u64,
pub value: DebugValue,
pub source: StateSource,
}Expand description
One state variable, or one place inside one, with its value at a step.
Fields§
§name: StringThe path as resolved, such as counter or balances[0xabc].
ty: StringThe Solidity type as the layout labels it.
slot: StringThe slot, as 0x-prefixed hex without leading zeros.
offset: u64The byte offset within the slot.
value: DebugValue§source: StateSourceWhether the value came from the recording or from the chain.
Trait Implementations§
Source§impl Clone for StateVariable
impl Clone for StateVariable
Source§fn clone(&self) -> StateVariable
fn clone(&self) -> StateVariable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StateVariable
impl Debug for StateVariable
impl Eq for StateVariable
Source§impl PartialEq for StateVariable
impl PartialEq for StateVariable
impl StructuralPartialEq for StateVariable
Auto Trait Implementations§
impl Freeze for StateVariable
impl RefUnwindSafe for StateVariable
impl Send for StateVariable
impl Sync for StateVariable
impl Unpin for StateVariable
impl UnsafeUnpin for StateVariable
impl UnwindSafe for StateVariable
Blanket Implementations§
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