pub struct SetVariableValueBuilder { /* private fields */ }Expand description
Builder for SetVariableValue.
Implementations§
Source§impl SetVariableValueBuilder
impl SetVariableValueBuilder
Sourcepub fn scope_number<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn scope_number<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
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<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn variable_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Variable name.
Sourcepub fn new_value<VALUE: Into<CallArgument>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn new_value<VALUE: Into<CallArgument>>( &mut self, value: VALUE, ) -> &mut Self
New variable value.
Sourcepub fn call_frame_id<VALUE: Into<CallFrameId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn call_frame_id<VALUE: Into<CallFrameId>>( &mut self, value: VALUE, ) -> &mut Self
Id of callframe that holds variable.
Sourcepub fn build(&self) -> Result<SetVariableValue, SetVariableValueBuilderError>
pub fn build(&self) -> Result<SetVariableValue, SetVariableValueBuilderError>
Trait Implementations§
Source§impl Clone for SetVariableValueBuilder
impl Clone for SetVariableValueBuilder
Source§fn clone(&self) -> SetVariableValueBuilder
fn clone(&self) -> SetVariableValueBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetVariableValueBuilder
impl RefUnwindSafe for SetVariableValueBuilder
impl Send for SetVariableValueBuilder
impl Sync for SetVariableValueBuilder
impl Unpin for SetVariableValueBuilder
impl UnsafeUnpin for SetVariableValueBuilder
impl UnwindSafe for SetVariableValueBuilder
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