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