#[non_exhaustive]pub enum PathFactorKind {
Node(NodePattern),
QuantifiedNode {
pattern: NodePattern,
quantifier: Quantifier,
},
Relationship(RelationshipPattern),
Parenthesized {
pattern: Box<PathPattern>,
where_clause: Option<Box<Expr>>,
quantifier: Option<Quantifier>,
},
Subpath {
binding: Name,
pattern: Box<PathPattern>,
where_clause: Option<Box<Expr>>,
quantifier: Option<Quantifier>,
},
LegacyShortest {
all: bool,
pattern: Box<PathPattern>,
},
Error(ErrorNode),
}Expand description
The form of a path factor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Node(NodePattern)
QuantifiedNode
A node pattern followed by a graph-pattern quantifier.
Relationship(RelationshipPattern)
Parenthesized
Subpath
A parenthesized path factor with a subpath-variable binding.
LegacyShortest
A legacy shortestPath(...) or allShortestPaths(...) path factor.
Error(ErrorNode)
Trait Implementations§
Source§impl Clone for PathFactorKind
impl Clone for PathFactorKind
Source§impl Debug for PathFactorKind
impl Debug for PathFactorKind
impl Eq for PathFactorKind
Source§impl Hash for PathFactorKind
impl Hash for PathFactorKind
Source§impl PartialEq for PathFactorKind
impl PartialEq for PathFactorKind
impl StructuralPartialEq for PathFactorKind
Auto Trait Implementations§
impl Freeze for PathFactorKind
impl RefUnwindSafe for PathFactorKind
impl Send for PathFactorKind
impl Sync for PathFactorKind
impl Unpin for PathFactorKind
impl UnsafeUnpin for PathFactorKind
impl UnwindSafe for PathFactorKind
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