Struct erg_parser::ast::ListComprehension
source · pub struct ListComprehension {
pub l_sqbr: Token,
pub r_sqbr: Token,
pub layout: Option<Box<Expr>>,
pub generators: Vec<(Identifier, Expr)>,
pub guard: Option<Box<Expr>>,
}
Fields§
§l_sqbr: Token
§r_sqbr: Token
§layout: Option<Box<Expr>>
§generators: Vec<(Identifier, Expr)>
§guard: Option<Box<Expr>>
Implementations§
Trait Implementations§
source§impl Clone for ListComprehension
impl Clone for ListComprehension
source§fn clone(&self) -> ListComprehension
fn clone(&self) -> ListComprehension
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 ListComprehension
impl Debug for ListComprehension
source§impl Display for ListComprehension
impl Display for ListComprehension
source§impl Hash for ListComprehension
impl Hash for ListComprehension
source§impl Locational for ListComprehension
impl Locational for ListComprehension
source§impl NestedDisplay for ListComprehension
impl NestedDisplay for ListComprehension
source§impl PartialEq for ListComprehension
impl PartialEq for ListComprehension
impl Eq for ListComprehension
impl StructuralPartialEq for ListComprehension
Auto Trait Implementations§
impl Freeze for ListComprehension
impl RefUnwindSafe for ListComprehension
impl Send for ListComprehension
impl Sync for ListComprehension
impl Unpin for ListComprehension
impl UnwindSafe for ListComprehension
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)