Struct rustpython_ast::ExprDictComp
source · pub struct ExprDictComp<R = TextRange> {
pub range: R,
pub key: Box<Expr<R>>,
pub value: Box<Expr<R>>,
pub generators: Vec<Comprehension<R>>,
}
Expand description
See also DictComp
Fields§
§range: R
§key: Box<Expr<R>>
§value: Box<Expr<R>>
§generators: Vec<Comprehension<R>>
Trait Implementations§
source§impl<R: Clone> Clone for ExprDictComp<R>
impl<R: Clone> Clone for ExprDictComp<R>
source§fn clone(&self) -> ExprDictComp<R>
fn clone(&self) -> ExprDictComp<R>
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<R: Debug> Debug for ExprDictComp<R>
impl<R: Debug> Debug for ExprDictComp<R>
source§impl<T, U> Foldable<T, U> for ExprDictComp<T>
impl<T, U> Foldable<T, U> for ExprDictComp<T>
source§impl<R> From<ExprDictComp<R>> for Ast<R>
impl<R> From<ExprDictComp<R>> for Ast<R>
source§fn from(payload: ExprDictComp<R>) -> Self
fn from(payload: ExprDictComp<R>) -> Self
Converts to this type from the input type.
source§impl<R> From<ExprDictComp<R>> for Expr<R>
impl<R> From<ExprDictComp<R>> for Expr<R>
source§fn from(payload: ExprDictComp<R>) -> Self
fn from(payload: ExprDictComp<R>) -> Self
Converts to this type from the input type.
source§impl<R> Node for ExprDictComp<R>
impl<R> Node for ExprDictComp<R>
source§impl<R: PartialEq> PartialEq for ExprDictComp<R>
impl<R: PartialEq> PartialEq for ExprDictComp<R>
source§fn eq(&self, other: &ExprDictComp<R>) -> bool
fn eq(&self, other: &ExprDictComp<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Ranged for ExprDictComp<TextRange>
impl Ranged for ExprDictComp<TextRange>
impl<R> StructuralPartialEq for ExprDictComp<R>
Auto Trait Implementations§
impl<R> Freeze for ExprDictComp<R>where
R: Freeze,
impl<R> RefUnwindSafe for ExprDictComp<R>where
R: RefUnwindSafe,
impl<R> Send for ExprDictComp<R>where
R: Send,
impl<R> Sync for ExprDictComp<R>where
R: Sync,
impl<R> Unpin for ExprDictComp<R>where
R: Unpin,
impl<R> UnwindSafe for ExprDictComp<R>where
R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more