Struct resast::stmt::ForInStmt [−][src]
Expand description
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for ForInStmt<'a>
impl<'a> UnwindSafe for ForInStmt<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more