pub struct Path {
pub nodes: Vec<NodeId>,
pub cost: i64,
}Expand description
Path in a graph
Fields§
§nodes: Vec<NodeId>Nodes in the path (as indices)
cost: i64Total cost/distance of the path
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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