pub struct GraphPath<'a> {
pub nodes: Vec<GraphId<'a>>,
pub edges: Vec<GraphId<'a>>,
pub state: StateRow,
pub intermediate_states: Option<Vec<StateRow>>,
}Expand description
One materialized path returned by a traversal.
IDs are borrowed from the graph. For integer-ID graphs the variants are
GraphId::U64; for string-ID graphs they are
GraphId::Str.
Fields§
§nodes: Vec<GraphId<'a>>External node IDs in path order, including the start and final node.
edges: Vec<GraphId<'a>>Edge IDs in path order.
state: StateRowFinal named state after the last accepted edge.
For a zero-edge path this is the kernel’s initial state.
intermediate_states: Option<Vec<StateRow>>Optional per-node state history in path order.
Present only when TraversalConfigBuilder::with_intermediate_states
is enabled. The first entry is the initial state at the start node; the
final entry equals GraphPath::state.
Trait Implementations§
Source§impl<'a> PartialEq for GraphPath<'a>
impl<'a> PartialEq for GraphPath<'a>
impl<'a> StructuralPartialEq for GraphPath<'a>
Auto Trait Implementations§
impl<'a> Freeze for GraphPath<'a>
impl<'a> RefUnwindSafe for GraphPath<'a>
impl<'a> Send for GraphPath<'a>
impl<'a> Sync for GraphPath<'a>
impl<'a> Unpin for GraphPath<'a>
impl<'a> UnsafeUnpin for GraphPath<'a>
impl<'a> UnwindSafe for GraphPath<'a>
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