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