pub struct JavascriptState { /* private fields */ }Expand description
Only the lexical and variable bindings required by checked single-agent clauses.
Implementations§
Source§impl JavascriptState
impl JavascriptState
Sourcepub fn get(&self, name: &str) -> Option<&JavascriptValue>
pub fn get(&self, name: &str) -> Option<&JavascriptValue>
Read a binding.
Sourcepub fn set(&mut self, name: impl Into<String>, value: JavascriptValue)
pub fn set(&mut self, name: impl Into<String>, value: JavascriptValue)
Define or assign a binding.
Trait Implementations§
Source§impl Clone for JavascriptState
impl Clone for JavascriptState
Source§fn clone(&self) -> JavascriptState
fn clone(&self) -> JavascriptState
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 JavascriptState
impl Debug for JavascriptState
Source§impl Default for JavascriptState
impl Default for JavascriptState
Source§fn default() -> JavascriptState
fn default() -> JavascriptState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JavascriptState
impl RefUnwindSafe for JavascriptState
impl Send for JavascriptState
impl Sync for JavascriptState
impl Unpin for JavascriptState
impl UnsafeUnpin for JavascriptState
impl UnwindSafe for JavascriptState
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