pub struct ShortestPath {
pub nodes: Vec<NodeId>,
pub edges: Vec<EdgeId>,
pub cost: f64,
pub found: bool,
pub nodes_visited: usize,
}Expand description
Result of a shortest path computation
Fields§
§nodes: Vec<NodeId>Sequence of nodes in the path
edges: Vec<EdgeId>Sequence of edges in the path
cost: f64Total cost of the path
found: boolWhether a path was found
nodes_visited: usizeNumber of nodes visited during search
Implementations§
Trait Implementations§
Source§impl Clone for ShortestPath
impl Clone for ShortestPath
Source§fn clone(&self) -> ShortestPath
fn clone(&self) -> ShortestPath
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 ShortestPath
impl RefUnwindSafe for ShortestPath
impl Send for ShortestPath
impl Sync for ShortestPath
impl Unpin for ShortestPath
impl UnsafeUnpin for ShortestPath
impl UnwindSafe for ShortestPath
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