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
IfFields of If
cond: Expression |
ForFields of For
async: bool | |
item: Vec<Expression> | |
iterator: Expression |
Trait Implementations
impl Clone for ComprehensionChunk[src]
impl Clone for ComprehensionChunkfn clone(&self) -> ComprehensionChunk[src]
fn clone(&self) -> ComprehensionChunkReturns 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 ComprehensionChunk[src]
impl Debug for ComprehensionChunkfn 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 ComprehensionChunk[src]
impl PartialEq for ComprehensionChunkfn eq(&self, other: &ComprehensionChunk) -> bool[src]
fn eq(&self, other: &ComprehensionChunk) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ComprehensionChunk) -> bool[src]
fn ne(&self, other: &ComprehensionChunk) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for ComprehensionChunk
impl Send for ComprehensionChunkimpl Sync for ComprehensionChunk
impl Sync for ComprehensionChunk