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(ExpressionVec<Statement>, Option<Vec<Statement>>),
    With(Vec<(Expression, Option<Expression>)>, Vec<Statement>),
    Funcdef(Funcdef),
    Classdef(Classdef),
    Try(Try),
}

Statements with blocks.

Variants

Fields of For

Trait Implementations

impl Clone for CompoundStatement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CompoundStatement
[src]

Formats the value using the given formatter. Read more

impl PartialEq for CompoundStatement
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations