Struct ressa::node::ForOfStatement
source · pub struct ForOfStatement {
pub left: LoopLeft,
pub right: Expression,
pub body: Box<Statement>,
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
right: Expression
body: Box<Statement>
is_await: bool
Implementations
sourceimpl ForOfStatement
impl ForOfStatement
Trait Implementations
sourceimpl Clone for ForOfStatement
impl Clone for ForOfStatement
sourcefn clone(&self) -> ForOfStatement
fn clone(&self) -> ForOfStatement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ForOfStatement
impl Debug for ForOfStatement
sourceimpl PartialEq<ForOfStatement> for ForOfStatement
impl PartialEq<ForOfStatement> for ForOfStatement
sourcefn eq(&self, other: &ForOfStatement) -> bool
fn eq(&self, other: &ForOfStatement) -> bool
impl StructuralPartialEq for ForOfStatement
Auto Trait Implementations
impl RefUnwindSafe for ForOfStatement
impl Send for ForOfStatement
impl Sync for ForOfStatement
impl Unpin for ForOfStatement
impl UnwindSafe for ForOfStatement
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