pub struct Variable {
pub name: PathSegment,
pub value: String,
pub type_: String,
pub has_children: bool,
}
Expand description
Information about a “structural variable” inspected by a debugger this currently has DAP-like semantic meaning that every complex object returned by debugger from the stack or from the heap can be broken down into “variables” this is how structured data is managed by the debugger. Something similar to LLDB’s SBValue
Fields§
§name: PathSegment
Name of the variable.
value: String
The value as a String.
type_: String
The variables type.
has_children: bool
Indicates whether there are children available for a given variable.
Implementations§
source§impl Variable
impl Variable
sourcepub fn from_value<'v>(name: PathSegment, v: Value<'v>) -> Self
pub fn from_value<'v>(name: PathSegment, v: Value<'v>) -> Self
creates a new instance of Variable from a given starlark value
Auto Trait Implementations§
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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