pub enum PathMode {
Walk,
Trail,
Acyclic,
Simple,
}Expand description
CIP-51 path mode: an explicit restrictor on one path pattern’s candidate
bindings. PatternPath::mode is None when no explicit keyword was
written – the resolved default is Walk.
Variants§
Walk
Nodes and relationships may repeat freely (subject to the enclosing
match mode’s own relationship-uniqueness pool, which under the
default DIFFERENT RELATIONSHIPS match mode still applies).
Trail
No two relationship bindings in this one path may bind the same
relationship (already the effective default under DIFFERENT RELATIONSHIPS, since that pool subsumes a single path’s own).
Acyclic
No two node bindings in this one path may bind the same node, except where two connectors are juxtaposed at a shared boundary node.
Simple
Like Acyclic, but the very first and very last node of the path may
coincide (an equijoin on the endpoints).
Trait Implementations§
impl Copy for PathMode
impl Eq for PathMode
impl StructuralPartialEq for PathMode
Auto Trait Implementations§
impl Forget for PathMode
impl Freeze for PathMode
impl Move for PathMode
impl RefUnwindSafe for PathMode
impl Send for PathMode
impl Sync for PathMode
impl Unpin for PathMode
impl UnsafeUnpin for PathMode
impl UnwindSafe for PathMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.