[−][src]Struct boa::environment::lexical_environment::LexicalEnvironment
Implementations
impl LexicalEnvironment
[src]
pub fn new(global: Value) -> Self
[src]
pub fn push(&mut self, env: Environment)
[src]
pub fn pop(&mut self) -> Option<Environment>
[src]
pub fn environments(&self) -> impl Iterator<Item = Environment>
[src]
pub fn get_global_object(&self) -> Option<Value>
[src]
pub fn get_this_binding(&self) -> Value
[src]
pub fn create_mutable_binding(
&mut self,
name: String,
deletion: bool,
scope: VariableScope
)
[src]
&mut self,
name: String,
deletion: bool,
scope: VariableScope
)
pub fn create_immutable_binding(
&mut self,
name: String,
deletion: bool,
scope: VariableScope
) -> bool
[src]
&mut self,
name: String,
deletion: bool,
scope: VariableScope
) -> bool
pub fn set_mutable_binding(&mut self, name: &str, value: Value, strict: bool)
[src]
pub fn initialize_binding(&mut self, name: &str, value: Value)
[src]
pub fn get_current_environment_ref(&self) -> &Environment
[src]
get_current_environment_ref is used when you only need to borrow the environment (you only need to add a new variable binding, or you want to fetch a value)
pub fn get_current_environment(&mut self) -> &mut Environment
[src]
When neededing to clone an environment (linking it with another environnment) cloning is more suited. The GC will remove the env once nothing is linking to it anymore
pub fn has_binding(&self, name: &str) -> bool
[src]
pub fn get_binding_value(&self, name: &str) -> Value
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for LexicalEnvironment
impl !Send for LexicalEnvironment
impl !Sync for LexicalEnvironment
impl Unpin for LexicalEnvironment
impl !UnwindSafe for LexicalEnvironment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,