Enum python_parser::ast::ComprehensionChunk[][src]

pub enum ComprehensionChunk {
    If {
        cond: Expression,
    },
    For {
        async: bool,
        item: Vec<Expression>,
        iterator: Expression,
    },
}

One of the if or for clause(s) of a comprehension list/dict/set or generator expression.

Variants

Fields of If

Fields of For

Trait Implementations

impl Clone for ComprehensionChunk
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ComprehensionChunk
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ComprehensionChunk
[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