Struct lunarity_ast::WhileStatement
source · pub struct WhileStatement<'ast> {
pub test: ExpressionNode<'ast>,
pub body: StatementNode<'ast>,
}
Fields§
§test: ExpressionNode<'ast>
§body: StatementNode<'ast>
Trait Implementations§
source§impl<'ast> Clone for WhileStatement<'ast>
impl<'ast> Clone for WhileStatement<'ast>
source§fn clone(&self) -> WhileStatement<'ast>
fn clone(&self) -> WhileStatement<'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 WhileStatement<'ast>
impl<'ast> Debug for WhileStatement<'ast>
source§impl<'ast> From<WhileStatement<'ast>> for Statement<'ast>
impl<'ast> From<WhileStatement<'ast>> for Statement<'ast>
source§fn from(val: WhileStatement<'ast>) -> Self
fn from(val: WhileStatement<'ast>) -> Self
Converts to this type from the input type.