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>>)
For
Fields 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 CompoundStatement
fn clone(&self) -> CompoundStatement
[src]
fn clone(&self) -> CompoundStatement
Returns 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 CompoundStatement
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for CompoundStatement
[src]
impl PartialEq for CompoundStatement
fn eq(&self, other: &CompoundStatement) -> bool
[src]
fn eq(&self, other: &CompoundStatement) -> bool
This 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) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for CompoundStatement
impl Send for CompoundStatement
impl Sync for CompoundStatement
impl Sync for CompoundStatement