[][src]Struct boa::syntax::ast::node::declaration::VarDeclList

pub struct VarDeclList { /* fields omitted */ }

The var statement declares a variable, optionally initializing it to a value.

var declarations, wherever they occur, are processed before any code is executed. This is called hoisting, and is discussed further below.

The scope of a variable declared with var is its current execution context, which is either the enclosing function or, for variables declared outside any function, global. If you re-declare a JavaScript variable, it will not lose its value.

Assigning a value to an undeclared variable implicitly creates it as a global variable (it becomes a property of the global object) when the assignment is executed.

More information:

Trait Implementations

impl AsRef<[VarDecl]> for VarDeclList[src]

impl Clone for VarDeclList[src]

impl Debug for VarDeclList[src]

impl Display for VarDeclList[src]

impl Drop for VarDeclList[src]

impl Executable for VarDeclList[src]

impl Finalize for VarDeclList[src]

impl<T> From<T> for VarDeclList where
    T: Into<Box<[VarDecl]>>, 
[src]

impl From<VarDecl> for VarDeclList[src]

impl From<VarDeclList> for Node[src]

impl PartialEq<VarDeclList> for VarDeclList[src]

impl StructuralPartialEq for VarDeclList[src]

impl Trace for VarDeclList[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>,