Struct lunarity_ast::ForStatement
source · pub struct ForStatement<'ast> {
pub init: Option<SimpleStatementNode<'ast>>,
pub test: Option<ExpressionNode<'ast>>,
pub update: Option<ExpressionNode<'ast>>,
pub body: StatementNode<'ast>,
}
Fields§
§init: Option<SimpleStatementNode<'ast>>
§test: Option<ExpressionNode<'ast>>
§update: Option<ExpressionNode<'ast>>
§body: StatementNode<'ast>
Trait Implementations§
source§impl<'ast> Clone for ForStatement<'ast>
impl<'ast> Clone for ForStatement<'ast>
source§fn clone(&self) -> ForStatement<'ast>
fn clone(&self) -> ForStatement<'ast>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'ast> Debug for ForStatement<'ast>
impl<'ast> Debug for ForStatement<'ast>
source§impl<'ast> From<ForStatement<'ast>> for Statement<'ast>
impl<'ast> From<ForStatement<'ast>> for Statement<'ast>
source§fn from(val: ForStatement<'ast>) -> Self
fn from(val: ForStatement<'ast>) -> Self
Converts to this type from the input type.