pub struct PathResult {
pub nodes: Vec<EntityId>,
pub edges: Vec<EdgeId>,
pub length: usize,
}Expand description
A path through the graph.
Represents a sequence of nodes and edges from a source to a target.
Fields§
§nodes: Vec<EntityId>The nodes in the path, from source to target.
edges: Vec<EdgeId>The edges connecting the nodes.
Length is nodes.len() - 1.
length: usizeThe total length of the path (number of edges).
Implementations§
Trait Implementations§
Source§impl Clone for PathResult
impl Clone for PathResult
Source§fn clone(&self) -> PathResult
fn clone(&self) -> PathResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PathResult
impl Debug for PathResult
impl Eq for PathResult
Source§impl PartialEq for PathResult
impl PartialEq for PathResult
Source§fn eq(&self, other: &PathResult) -> bool
fn eq(&self, other: &PathResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PathResult
Auto Trait Implementations§
impl Freeze for PathResult
impl RefUnwindSafe for PathResult
impl Send for PathResult
impl Sync for PathResult
impl Unpin for PathResult
impl UnsafeUnpin for PathResult
impl UnwindSafe for PathResult
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