pub enum CompoundStatement {
If(Vec<(Expression, Vec<Statement>)>, Option<Vec<Statement>>),
For {
async: bool,
item: Vec<Expression>,
iterator: Vec<Expression>,
for_block: Vec<Statement>,
else_block: Option<Vec<Statement>>,
},
While(Expression, Vec<Statement>, Option<Vec<Statement>>),
With(Vec<(Expression, Option<Expression>)>, Vec<Statement>),
Funcdef(Funcdef),
Classdef(Classdef),
Try(Try),
}
Expand description
Statements with blocks.
Variants§
If(Vec<(Expression, Vec<Statement>)>, Option<Vec<Statement>>)
For
While(Expression, Vec<Statement>, Option<Vec<Statement>>)
With(Vec<(Expression, Option<Expression>)>, Vec<Statement>)
Funcdef(Funcdef)
Classdef(Classdef)
Try(Try)
Trait Implementations§
Source§impl Clone for CompoundStatement
impl Clone for CompoundStatement
Source§fn clone(&self) -> CompoundStatement
fn clone(&self) -> CompoundStatement
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 Debug for CompoundStatement
impl Debug for CompoundStatement
Source§impl PartialEq for CompoundStatement
impl PartialEq for CompoundStatement
impl StructuralPartialEq for CompoundStatement
Auto Trait Implementations§
impl Freeze for CompoundStatement
impl RefUnwindSafe for CompoundStatement
impl Send for CompoundStatement
impl Sync for CompoundStatement
impl Unpin for CompoundStatement
impl UnwindSafe for CompoundStatement
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