pub struct PathResult {
pub path: Vec<Node>,
pub edges: Vec<Edge>,
pub total_weight: f32,
pub found: bool,
}Expand description
Result of a shortest path query.
Fields§
§path: Vec<Node>Nodes along the path, in order.
edges: Vec<Edge>Edges along the path.
total_weight: f32Total path weight.
found: boolWhether a path was found.
Implementations§
Source§impl PathResult
impl PathResult
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 · 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 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