Enum lunarity_ast::SimpleStatement
source · pub enum SimpleStatement<'ast> {
VariableDefinitionStatement(VariableDefinitionStatement<'ast>),
InferredDefinitionStatement(InferredDefinitionStatement<'ast>),
ExpressionStatement(ExpressionNode<'ast>),
}
Expand description
Used in the for
loop initialization.
Variants§
VariableDefinitionStatement(VariableDefinitionStatement<'ast>)
InferredDefinitionStatement(InferredDefinitionStatement<'ast>)
ExpressionStatement(ExpressionNode<'ast>)
Trait Implementations§
source§impl<'ast> Clone for SimpleStatement<'ast>
impl<'ast> Clone for SimpleStatement<'ast>
source§fn clone(&self) -> SimpleStatement<'ast>
fn clone(&self) -> SimpleStatement<'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 SimpleStatement<'ast>
impl<'ast> Debug for SimpleStatement<'ast>
source§impl<'ast> From<InferredDefinitionStatement<'ast>> for SimpleStatement<'ast>
impl<'ast> From<InferredDefinitionStatement<'ast>> for SimpleStatement<'ast>
source§fn from(val: InferredDefinitionStatement<'ast>) -> Self
fn from(val: InferredDefinitionStatement<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<Node<'ast, Expression<'ast>>> for SimpleStatement<'ast>
impl<'ast> From<Node<'ast, Expression<'ast>>> for SimpleStatement<'ast>
source§fn from(val: ExpressionNode<'ast>) -> Self
fn from(val: ExpressionNode<'ast>) -> Self
Converts to this type from the input type.
source§impl<'ast> From<VariableDefinitionStatement<'ast>> for SimpleStatement<'ast>
impl<'ast> From<VariableDefinitionStatement<'ast>> for SimpleStatement<'ast>
source§fn from(val: VariableDefinitionStatement<'ast>) -> Self
fn from(val: VariableDefinitionStatement<'ast>) -> Self
Converts to this type from the input type.