pub enum PathOp {
Nodes,
Rels,
Length,
Properties,
IsTrail,
IsAcyclic,
}Expand description
Path functions — operate on recursive rel / path values (NODES, RELS, LENGTH).
Ported from C++ function/path/:
NODES(path)→ returns the list of nodes in the pathRELS(path)/RELATIONSHIPS(path)→ returns the list of rels in the pathLENGTH(path)→ returns the number of rels in the path
Variants§
Nodes
Rels
Length
Properties
PROPERTIES(path) — extract all properties from path nodes and rels.
IsTrail
IS_TRAIL(path) — check if path has no repeated edges (a trail).
IsAcyclic
IS_ACYCLIC(path) — check if path has no repeated nodes (acyclic).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathOp
impl RefUnwindSafe for PathOp
impl Send for PathOp
impl Sync for PathOp
impl Unpin for PathOp
impl UnsafeUnpin for PathOp
impl UnwindSafe for PathOp
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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