pub enum ResolvedStatement {
ForLoop(ResolvedForPattern, ResolvedIterator, Vec<ResolvedStatement>),
WhileLoop(ResolvedBooleanExpression, Vec<ResolvedStatement>),
Return(ResolvedExpression),
Break,
Continue,
Expression(ResolvedExpression),
Block(Vec<ResolvedStatement>),
If(ResolvedBooleanExpression, Vec<ResolvedStatement>, Option<Vec<ResolvedStatement>>),
IfOnlyVariable {
variable: ResolvedVariableRef,
optional_expr: Box<ResolvedExpression>,
true_block: Vec<ResolvedStatement>,
false_block: Option<Vec<ResolvedStatement>>,
},
IfAssignExpression {
variable: ResolvedVariableRef,
optional_expr: Box<ResolvedExpression>,
true_block: Vec<ResolvedStatement>,
false_block: Option<Vec<ResolvedStatement>>,
},
}
Variants§
ForLoop(ResolvedForPattern, ResolvedIterator, Vec<ResolvedStatement>)
WhileLoop(ResolvedBooleanExpression, Vec<ResolvedStatement>)
Return(ResolvedExpression)
Break
Continue
Expression(ResolvedExpression)
Block(Vec<ResolvedStatement>)
If(ResolvedBooleanExpression, Vec<ResolvedStatement>, Option<Vec<ResolvedStatement>>)
IfOnlyVariable
Fields
§
variable: ResolvedVariableRef
§
optional_expr: Box<ResolvedExpression>
§
true_block: Vec<ResolvedStatement>
§
false_block: Option<Vec<ResolvedStatement>>
IfAssignExpression
Fields
§
variable: ResolvedVariableRef
§
optional_expr: Box<ResolvedExpression>
§
true_block: Vec<ResolvedStatement>
§
false_block: Option<Vec<ResolvedStatement>>
Trait Implementations§
Source§impl Debug for ResolvedStatement
impl Debug for ResolvedStatement
Auto Trait Implementations§
impl Freeze for ResolvedStatement
impl !RefUnwindSafe for ResolvedStatement
impl !Send for ResolvedStatement
impl !Sync for ResolvedStatement
impl Unpin for ResolvedStatement
impl !UnwindSafe for ResolvedStatement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more