pub enum StatementKind {
Show 14 variants
Labeled(LabeledStatement),
Compound(CompoundStatement),
Expression(Expression),
If {
cond: Expression,
body: Box<Statement>,
else_body: Option<Box<Statement>>,
},
Switch {
val: Expression,
body: Box<Statement>,
},
CondIter {
cond: Expression,
body: Box<Statement>,
iter_type: CondIterType,
},
For {
init: Option<ForInit>,
cond: Option<Expression>,
update: Option<ExprList>,
body: Box<Statement>,
},
Break,
Continue,
Return(Option<ExprList>),
LocalVariableDefinition(LocalVariableDefinition),
MultiAssign {
assignees: ExprList,
rhs: Expression,
},
StaticConstArray(StaticConstArray),
Empty,
}
Variants§
Labeled(LabeledStatement)
Compound(CompoundStatement)
Expression(Expression)
If
Switch
CondIter
For
Break
Continue
Return(Option<ExprList>)
LocalVariableDefinition(LocalVariableDefinition)
MultiAssign
StaticConstArray(StaticConstArray)
Empty
Trait Implementations§
Source§impl Clone for StatementKind
impl Clone for StatementKind
Source§fn clone(&self) -> StatementKind
fn clone(&self) -> StatementKind
Returns a duplicate 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 Debug for StatementKind
impl Debug for StatementKind
Source§impl PartialEq for StatementKind
impl PartialEq for StatementKind
impl StructuralPartialEq for StatementKind
Auto Trait Implementations§
impl Freeze for StatementKind
impl RefUnwindSafe for StatementKind
impl Send for StatementKind
impl Sync for StatementKind
impl Unpin for StatementKind
impl UnwindSafe for StatementKind
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