Struct tree_sitter_graph::ast::ListComprehension
source · pub struct ListComprehension {
pub element: Box<Expression>,
pub variable: UnscopedVariable,
pub value: Box<Expression>,
pub location: Location,
}
Expand description
An list comprehension
Fields§
§element: Box<Expression>
§variable: UnscopedVariable
§value: Box<Expression>
§location: Location
Trait Implementations§
source§impl Debug for ListComprehension
impl Debug for ListComprehension
source§impl Display for ListComprehension
impl Display for ListComprehension
source§impl From<ListComprehension> for Expression
impl From<ListComprehension> for Expression
source§fn from(expr: ListComprehension) -> Expression
fn from(expr: ListComprehension) -> Expression
Converts to this type from the input type.
source§impl PartialEq for ListComprehension
impl PartialEq for ListComprehension
source§fn eq(&self, other: &ListComprehension) -> bool
fn eq(&self, other: &ListComprehension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ListComprehension
impl StructuralPartialEq for ListComprehension
Auto Trait Implementations§
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