[][src]Struct boa::environment::global_environment_record::GlobalEnvironmentRecord

pub struct GlobalEnvironmentRecord {
    pub object_record: Box<ObjectEnvironmentRecord>,
    pub global_this_binding: Value,
    pub declerative_record: Box<DeclerativeEnvironmentRecord>,
    pub var_names: HashSet<String>,
}

Fields

object_record: Box<ObjectEnvironmentRecord>global_this_binding: Valuedeclerative_record: Box<DeclerativeEnvironmentRecord>var_names: HashSet<String>

Methods

impl GlobalEnvironmentRecord[src]

pub fn get_this_binding(&self) -> Value[src]

pub fn has_var_decleration(&self, name: &String) -> bool[src]

pub fn has_lexical_decleration(&self, name: &String) -> bool[src]

pub fn has_restricted_global_property(&self, name: &String) -> bool[src]

pub fn create_global_var_binding(&mut self, name: String, deletion: bool)[src]

pub fn create_global_function_binding(
    &mut self,
    name: String,
    value: Value,
    deletion: bool
)
[src]

Trait Implementations

impl EnvironmentRecordTrait for GlobalEnvironmentRecord[src]

impl Drop for GlobalEnvironmentRecord[src]

impl Clone for GlobalEnvironmentRecord[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Finalize for GlobalEnvironmentRecord[src]

fn finalize(&self)[src]

impl Trace for GlobalEnvironmentRecord[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]