Struct erg_parser::ast::DictComprehension
source · pub struct DictComprehension {
pub kv: Box<KeyValue>,
pub generators: Vec<(Identifier, Expr)>,
pub guard: Option<Box<Expr>>,
/* private fields */
}
Fields§
§kv: Box<KeyValue>
§generators: Vec<(Identifier, Expr)>
§guard: Option<Box<Expr>>
Implementations§
Trait Implementations§
source§impl Clone for DictComprehension
impl Clone for DictComprehension
source§fn clone(&self) -> DictComprehension
fn clone(&self) -> DictComprehension
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 Debug for DictComprehension
impl Debug for DictComprehension
source§impl Display for DictComprehension
impl Display for DictComprehension
source§impl Hash for DictComprehension
impl Hash for DictComprehension
source§impl Locational for DictComprehension
impl Locational for DictComprehension
source§impl NestedDisplay for DictComprehension
impl NestedDisplay for DictComprehension
source§impl PartialEq for DictComprehension
impl PartialEq for DictComprehension
source§fn eq(&self, other: &DictComprehension) -> bool
fn eq(&self, other: &DictComprehension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DictComprehension
impl StructuralPartialEq for DictComprehension
Auto Trait Implementations§
impl Freeze for DictComprehension
impl RefUnwindSafe for DictComprehension
impl Send for DictComprehension
impl Sync for DictComprehension
impl Unpin for DictComprehension
impl UnwindSafe for DictComprehension
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