pub struct NamedValue {
pub name: String,
pub value: StateValue,
}Expand description
one in-scope variable in a VmState snapshot: a name plus its typed
value.
name is the variable’s real source name – x, sum, a for loop
variable – recovered from the chunk’s Chunk::local_names table; a
compiler-synthesized temporary with no recorded name falls back to
slot{i}. value carries the same rendered-string + type-name pair a
stack slot does. derives serde::Serialize for the WASM bridge.
Fields§
§name: Stringthe variable’s source name (or slot{i} for an unnamed temporary).
value: StateValuethe variable’s current value, rendered and type-tagged.
Trait Implementations§
Source§impl Clone for NamedValue
impl Clone for NamedValue
Source§fn clone(&self) -> NamedValue
fn clone(&self) -> NamedValue
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 NamedValue
impl Debug for NamedValue
Auto Trait Implementations§
impl Freeze for NamedValue
impl RefUnwindSafe for NamedValue
impl Send for NamedValue
impl Sync for NamedValue
impl Unpin for NamedValue
impl UnsafeUnpin for NamedValue
impl UnwindSafe for NamedValue
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