pub enum Pattern {
Node(NodePattern),
Path(PathPattern),
Quantified {
pattern: Box<Pattern>,
min: u32,
max: Option<u32>,
subpath_var: Option<String>,
path_mode: Option<PathMode>,
where_clause: Option<Expression>,
},
Union(Vec<Pattern>),
MultisetUnion(Vec<Pattern>),
}Expand description
A graph pattern.
Variants§
Node(NodePattern)
A node pattern.
Path(PathPattern)
An edge pattern connecting nodes.
Quantified
A quantified (parenthesized) path pattern: ((a)-[e]->(b)){2,5}.
Fields
§
path_mode: Option<PathMode>G049: Path mode prefix inside parenthesized pattern, e.g. (TRAIL (a)-[]->(b)){2,5}.
§
where_clause: Option<Expression>G050: WHERE clause inside parenthesized pattern, e.g. ((a)-[e]->(b) WHERE e.w > 5){2,5}.
Union(Vec<Pattern>)
A union of alternative path patterns: (a)-[:T1]->(b) | (a)-[:T2]->(c).
Set semantics: duplicates are removed.
MultisetUnion(Vec<Pattern>)
A multiset union of alternative path patterns: (a)-[:T1]->(b) |+| (a)-[:T2]->(c).
Bag semantics: duplicates are preserved (G030).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnsafeUnpin for Pattern
impl UnwindSafe for Pattern
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more