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