Struct swc_ecma_ast::ForOfStmt
source · [−]pub struct ForOfStmt {
pub span: Span,
pub await_token: Option<Span>,
pub left: VarDeclOrPat,
pub right: Box<Expr>,
pub body: Box<Stmt>,
}
Fields
span: Span
await_token: Option<Span>
Span of the await token.
es2018
for-await-of statements, e.g., for await (const x of xs) {
left: VarDeclOrPat
right: Box<Expr>
body: Box<Stmt>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ForOfStmt
impl<'de> Deserialize<'de> for ForOfStmt
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for ForOfStmt
impl EqIgnoreSpan for ForOfStmt
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for ForOfStmt
impl StructuralEq for ForOfStmt
impl StructuralPartialEq for ForOfStmt
Auto Trait Implementations
impl RefUnwindSafe for ForOfStmt
impl Send for ForOfStmt
impl Sync for ForOfStmt
impl Unpin for ForOfStmt
impl UnwindSafe for ForOfStmt
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