pub enum ComprehensionSource<X: Extension = NoExt> {
Expr {
expr: Box<Expr<X>>,
meta: Meta,
},
Star {
parenthesized: bool,
options: Option<Box<WildcardOptions<X>>>,
meta: Meta,
},
}Expand description
The source of a ListComprehension — the thing iterated over.
A general list-valued expression, or the DuckDB column-star source that is valid
only inside COLUMNS(…) ([x for x in *], [x for x in (* EXCLUDE (i))]). The star
is a distinct spelling rather than an expression because DuckDB has no bare *
value expression — it is grammar special to this slot — and because it cannot
canonicalize to COLUMNS(*) (DuckDB rejects a COLUMNS nested inside another).
Variants§
Expr
A general list-valued expression source ([y for y in <expr>]).
Fields
Star
The DuckDB column-star source: a bare * or a parenthesized (* …), optionally
carrying the EXCLUDE/REPLACE/RENAME wildcard modifiers (only legal in the
parenthesized form). parenthesized records the (…) spelling so it round-trips.
Trait Implementations§
Source§impl<X: Clone + Extension> Clone for ComprehensionSource<X>
impl<X: Clone + Extension> Clone for ComprehensionSource<X>
Source§fn clone(&self) -> ComprehensionSource<X>
fn clone(&self) -> ComprehensionSource<X>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, X> Deserialize<'de> for ComprehensionSource<X>where
X: Deserialize<'de> + Extension,
impl<'de, X> Deserialize<'de> for ComprehensionSource<X>where
X: Deserialize<'de> + Extension,
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
impl<X: Eq + Extension> Eq for ComprehensionSource<X>
Source§impl<X> Serialize for ComprehensionSource<X>
impl<X> Serialize for ComprehensionSource<X>
Source§impl<X: Extension> Spanned for ComprehensionSource<X>
impl<X: Extension> Spanned for ComprehensionSource<X>
impl<X: PartialEq + Extension> StructuralPartialEq for ComprehensionSource<X>
Auto Trait Implementations§
impl<X> Freeze for ComprehensionSource<X>
impl<X> RefUnwindSafe for ComprehensionSource<X>where
X: RefUnwindSafe,
impl<X> Send for ComprehensionSource<X>where
X: Send,
impl<X> Sync for ComprehensionSource<X>where
X: Sync,
impl<X> Unpin for ComprehensionSource<X>
impl<X> UnsafeUnpin for ComprehensionSource<X>
impl<X> UnwindSafe for ComprehensionSource<X>where
X: UnwindSafe,
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