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
sourceimpl<'a> PartialEq<ForInStmt<'a>> for ForInStmt<'a>
impl<'a> PartialEq<ForInStmt<'a>> for ForInStmt<'a>
impl<'a> StructuralPartialEq for ForInStmt<'a>
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more