pub enum WithOrigin {
Explicit,
Let,
Filter,
}Expand description
Which surface syntax produced a WithClause. Plain WITH, CIP-206’s
LET, and CIP-203’s FILTER all desugar into the same WithClause so
they share WITH’s projection/aggregation/ORDER BY/SKIP/LIMIT/WHERE
execution machinery and its generic variable-scope tracking – but LET
and FILTER each carry restrictions ordinary WITH does not (LET: no
shadowing of an in-scope variable, no sibling/forward/self reference
within one LET’s item list, no aggregation function in a value
expression; FILTER: its search condition’s declared type must be
Boolean). The origin is recorded so the validation passes enforcing
those extra rules only fire for the syntax that actually carries them.
Variants§
Trait Implementations§
Source§impl Clone for WithOrigin
impl Clone for WithOrigin
impl Copy for WithOrigin
Source§impl Debug for WithOrigin
impl Debug for WithOrigin
Source§impl Default for WithOrigin
impl Default for WithOrigin
impl Eq for WithOrigin
Source§impl PartialEq for WithOrigin
impl PartialEq for WithOrigin
impl StructuralPartialEq for WithOrigin
Auto Trait Implementations§
impl Forget for WithOrigin
impl Freeze for WithOrigin
impl Move for WithOrigin
impl RefUnwindSafe for WithOrigin
impl Send for WithOrigin
impl Sync for WithOrigin
impl Unpin for WithOrigin
impl UnsafeUnpin for WithOrigin
impl UnwindSafe for WithOrigin
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.