pub struct ListComprehension {
pub var: String,
pub list: Box<Expr>,
pub filter: Option<Box<Expr>>,
pub projection: Option<Box<Expr>>,
pub span: Span,
}Expand description
A list comprehension: [x IN list WHERE pred | projection].
Fields§
§var: String§list: Box<Expr>§filter: Option<Box<Expr>>§projection: Option<Box<Expr>>§span: SpanTrait Implementations§
Source§impl Clone for ListComprehension
impl Clone for ListComprehension
Source§impl Debug for ListComprehension
impl Debug for ListComprehension
Source§impl<'de> Deserialize<'de> for ListComprehension
impl<'de> Deserialize<'de> for ListComprehension
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ListComprehension
impl PartialEq for ListComprehension
Source§impl Serialize for ListComprehension
impl Serialize 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 UnsafeUnpin 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