pub struct TraversalResult {
pub node: Node,
pub depth: usize,
pub weight: f64,
}Expand description
A single node returned by a graph traversal, with path metadata.
Fields§
§node: NodeThe reached node.
depth: usizeNumber of hops from the anchor node.
weight: f64Weight of the edge that connected this node to its parent in the traversal.
Trait Implementations§
Source§impl Clone for TraversalResult
impl Clone for TraversalResult
Source§fn clone(&self) -> TraversalResult
fn clone(&self) -> TraversalResult
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 moreAuto Trait Implementations§
impl Freeze for TraversalResult
impl RefUnwindSafe for TraversalResult
impl Send for TraversalResult
impl Sync for TraversalResult
impl Unpin for TraversalResult
impl UnsafeUnpin for TraversalResult
impl UnwindSafe for TraversalResult
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