pub struct UnwindClause {
pub expr: Expr,
pub alias: SmallName,
pub for_syntax: bool,
}Expand description
UNWIND clause. A FOR <variable> IN <expression>
clause normalizes here at parse time – the same expr/alias pair with
UnwindClause::for_syntax recording the source spelling – so every
downstream consumer (validation, lowering, planning, execution) treats
the two spellings identically, exactly as the CIP requires (no new
operators). The flag is the parse-spelling record the FOREACH-body
renderer reads (FOR, not UNWIND, in the 42I01 text) — the one
consumer that must distinguish the spellings.
Fields§
§expr: Expr§alias: SmallName§for_syntax: boolTrue when the clause was written FOR <variable> IN <expression>
(CIP-250) rather than UNWIND <expression> AS <variable>.
Trait Implementations§
Source§impl Clone for UnwindClause
impl Clone for UnwindClause
Source§impl Debug for UnwindClause
impl Debug for UnwindClause
Source§impl PartialEq for UnwindClause
impl PartialEq for UnwindClause
impl StructuralPartialEq for UnwindClause
Auto Trait Implementations§
impl Forget for UnwindClause
impl Freeze for UnwindClause
impl Move for UnwindClause
impl RefUnwindSafe for UnwindClause
impl Send for UnwindClause
impl Sync for UnwindClause
impl Unpin for UnwindClause
impl UnsafeUnpin for UnwindClause
impl UnwindSafe for UnwindClause
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