[][src]Struct resast::stmt::ForInStmt

pub struct ForInStmt<'a> {
    pub left: LoopLeft<'a>,
    pub right: Expr<'a>,
    pub body: Box<Stmt<'a>>,
}

A for in statement, this kind of for statement will extract each key from an indexable thing

for (var i in [2,3,4,5,6]) {
    console.log(i);
}
//prints 0, 1, 2, 3, 4
for (var k in {a: 'b', c: 'd'}) {
    console.log(k);
}
//prints a, b

Fields

left: LoopLeft<'a>right: Expr<'a>body: Box<Stmt<'a>>

Trait Implementations

impl<'a> Clone for ForInStmt<'a>[src]

impl<'a> Debug for ForInStmt<'a>[src]

impl<'a> PartialEq<ForInStmt<'a>> for ForInStmt<'a>[src]

impl<'a> StructuralPartialEq for ForInStmt<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ForInStmt<'a>

impl<'a> Send for ForInStmt<'a>

impl<'a> Sync for ForInStmt<'a>

impl<'a> Unpin for ForInStmt<'a>

impl<'a> UnwindSafe for ForInStmt<'a>

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, 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.