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: UnscopedVariablevalue: Box<Expression>location: LocationTrait Implementations
sourceimpl Debug for ListComprehension
impl Debug for ListComprehension
sourceimpl Display for ListComprehension
impl Display for ListComprehension
sourceimpl From<ListComprehension> for Expression
impl From<ListComprehension> for Expression
sourcefn from(expr: ListComprehension) -> Expression
fn from(expr: ListComprehension) -> Expression
Converts to this type from the input type.
sourceimpl PartialEq<ListComprehension> for ListComprehension
impl PartialEq<ListComprehension> for ListComprehension
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ListComprehension) -> bool
fn ne(&self, other: &ListComprehension) -> bool
This method tests for !=.
impl Eq for ListComprehension
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more