Enum python_parser::ast::CompoundStatement [−][src]
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),
}Statements with blocks.
Variants
If(Vec<(Expression, Vec<Statement>)>, Option<Vec<Statement>>)ForFields of 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)
Trait Implementations
impl Clone for CompoundStatement[src]
impl Clone for CompoundStatementfn clone(&self) -> CompoundStatement[src]
fn clone(&self) -> CompoundStatementReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for CompoundStatement[src]
impl Debug for CompoundStatementfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for CompoundStatement[src]
impl PartialEq for CompoundStatementfn eq(&self, other: &CompoundStatement) -> bool[src]
fn eq(&self, other: &CompoundStatement) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &CompoundStatement) -> bool[src]
fn ne(&self, other: &CompoundStatement) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for CompoundStatement
impl Send for CompoundStatementimpl Sync for CompoundStatement
impl Sync for CompoundStatement