pub struct QuantifiedPathPattern {
pub subpath_variable: Option<SmallName>,
pub elements: Vec<PatternElement>,
pub where_expr: Option<Expr>,
pub quantifier: PathQuantifier,
}Expand description
A quantified path pattern: a parenthesized subpath (elements),
optionally assigned a subpath variable (e.g. (p2 = (x)-->(y))*) and/or a trailing WHERE evaluated once per
iteration, followed by a quantifier. Appears as a PatternElement
alongside plain Node/Relationship elements so it composes freely with
them by concatenation.
A bare quantified relationship (-[r]->*, Form 5) does not produce this
variant: it normalizes directly into the ordinary variable-length
RelPattern (min_hops/max_hops), since it declares no element
variables of its own to expose as a group and its matching semantics are
identical to the legacy -[*min..max]-> matcher (only the quantifier’s
own zero-inclusive defaults differ, e.g. bare * means 0 or more here
versus 1 or more for legacy bare *). See Parser::parse_rel_pattern.
Fields§
§subpath_variable: Option<SmallName>§elements: Vec<PatternElement>§where_expr: Option<Expr>§quantifier: PathQuantifier