pub struct SetVariableValueCommand { /* private fields */ }Available on crate features
Debugger and Runtime only.Expand description
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Implementations§
Source§impl SetVariableValueCommand
impl SetVariableValueCommand
pub fn builder() -> SetVariableValueCommandBuilder
Sourcepub fn scope_number(&self) -> u32
pub fn scope_number(&self) -> u32
0-based number of scope as was listed in scope chain. Only ‘local’, ‘closure’ and ‘catch’ scope types are allowed. Other scopes could be manipulated manually.
Sourcepub fn variable_name(&self) -> &str
pub fn variable_name(&self) -> &str
Variable name.
Sourcepub fn new_value(&self) -> &CallArgument
pub fn new_value(&self) -> &CallArgument
New variable value.
Sourcepub fn call_frame_id(&self) -> &CallFrameId
pub fn call_frame_id(&self) -> &CallFrameId
Id of callframe that holds variable.
Trait Implementations§
Source§impl Clone for SetVariableValueCommand
impl Clone for SetVariableValueCommand
Source§fn clone(&self) -> SetVariableValueCommand
fn clone(&self) -> SetVariableValueCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for SetVariableValueCommand
impl Command for SetVariableValueCommand
Source§impl Debug for SetVariableValueCommand
impl Debug for SetVariableValueCommand
Source§impl<'de> Deserialize<'de> for SetVariableValueCommand
impl<'de> Deserialize<'de> for SetVariableValueCommand
Source§fn 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
Auto Trait Implementations§
impl Freeze for SetVariableValueCommand
impl RefUnwindSafe for SetVariableValueCommand
impl Send for SetVariableValueCommand
impl Sync for SetVariableValueCommand
impl Unpin for SetVariableValueCommand
impl UnwindSafe for SetVariableValueCommand
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