Struct resast::stmt::ForOfStmt [−][src]
pub struct ForOfStmt<'a> {
pub left: LoopLeft<'a>,
pub right: Expr<'a>,
pub body: Box<Stmt<'a>>,
pub is_await: bool,
}
Expand description
A for of statement, this kind of for statement will extract the value from a generator or iterator
for (var k of [2, 3, 4, 5, 6]) {
console.log(k);
}
//prints 2, 3, 4, 5, 6
Fields
left: LoopLeft<'a>
right: Expr<'a>
body: Box<Stmt<'a>>
is_await: bool
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ForOfStmt<'a>
impl<'a> UnwindSafe for ForOfStmt<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more