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
If
Fields of If
cond: Expression |
For
Fields of For
async: bool | |
item: Vec<Expression> | |
iterator: Expression |
Trait Implementations
impl Clone for ComprehensionChunk
[src]
impl Clone for ComprehensionChunk
fn clone(&self) -> ComprehensionChunk
[src]
fn clone(&self) -> ComprehensionChunk
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 ComprehensionChunk
[src]
impl Debug for ComprehensionChunk
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 ComprehensionChunk
[src]
impl PartialEq for ComprehensionChunk
fn eq(&self, other: &ComprehensionChunk) -> bool
[src]
fn eq(&self, other: &ComprehensionChunk) -> bool
This 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) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ComprehensionChunk
impl Send for ComprehensionChunk
impl Sync for ComprehensionChunk
impl Sync for ComprehensionChunk