Struct rustpython_ast::Comprehension
source · pub struct Comprehension<U = ()> {
pub target: Expr<U>,
pub iter: Expr<U>,
pub ifs: Vec<Expr<U>>,
pub is_async: usize,
}
Fields§
§target: Expr<U>
§iter: Expr<U>
§ifs: Vec<Expr<U>>
§is_async: usize
Trait Implementations§
source§impl<U: Clone> Clone for Comprehension<U>
impl<U: Clone> Clone for Comprehension<U>
source§fn clone(&self) -> Comprehension<U>
fn clone(&self) -> Comprehension<U>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<U: Debug> Debug for Comprehension<U>
impl<U: Debug> Debug for Comprehension<U>
source§impl<U: PartialEq> PartialEq<Comprehension<U>> for Comprehension<U>
impl<U: PartialEq> PartialEq<Comprehension<U>> for Comprehension<U>
source§fn eq(&self, other: &Comprehension<U>) -> bool
fn eq(&self, other: &Comprehension<U>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.