Struct erg_parser::ast::SetComprehension
source · pub struct SetComprehension {
pub l_brace: Token,
pub r_brace: Token,
pub var: Token,
pub op: Token,
pub iter: Box<Expr>,
pub pred: Box<Expr>,
}Fields§
§l_brace: Token§r_brace: Token§var: Token§op: Token§iter: Box<Expr>§pred: 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§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc cannot be treated as a light method when self is a large grammatical element.
If possible, delay the computation by passing &impl Locational or other means.fn ln_begin(&self) -> Option<u32>
fn ln_end(&self) -> Option<u32>
fn col_begin(&self) -> Option<u32>
fn col_end(&self) -> Option<u32>
source§impl NestedDisplay for SetComprehension
impl NestedDisplay for SetComprehension
source§impl PartialEq<SetComprehension> for SetComprehension
impl PartialEq<SetComprehension> 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 StructuralEq for SetComprehension
impl StructuralPartialEq for SetComprehension
Auto Trait Implementations§
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