pub enum Edge<'a> {
Expr(&'a Expr),
Pattern(&'a PatternPath),
Subquery(&'a Statement),
Label(&'a LabelExpr),
}Expand description
One direct child of an Expr node, in the table’s visit order.
The visit order is part of the contract: a pattern or subquery edge comes before the node’s expression children and a label edge after them, so a walker that visits edges as they arrive reproduces the documented order without a second pass.
Variants§
Expr(&'a Expr)
An expression child: operand, argument, list/map item, CASE arm, comprehension or reduce body, subscript part, interpolation embed.
Pattern(&'a PatternPath)
The pattern of a pattern comprehension, pattern predicate or
shortestPath().
Subquery(&'a Statement)
The nested statement of an EXISTS/COUNT/COLLECT subquery.
Label(&'a LabelExpr)
The label expression of a HasLabel.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Edge<'a>
impl<'a> Freeze for Edge<'a>
impl<'a> Move for Edge<'a>
impl<'a> RefUnwindSafe for Edge<'a>
impl<'a> Send for Edge<'a>
impl<'a> Sync for Edge<'a>
impl<'a> Unpin for Edge<'a>
impl<'a> UnsafeUnpin for Edge<'a>
impl<'a> UnwindSafe for Edge<'a>
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