Struct petgraph::astar::PathTracker
source · struct PathTracker<G>{
came_from: HashMap<G::NodeId, G::NodeId>,
}
Fields§
§came_from: HashMap<G::NodeId, G::NodeId>
Implementations§
source§impl<G> PathTracker<G>
impl<G> PathTracker<G>
fn new() -> PathTracker<G>
fn set_predecessor(&mut self, node: G::NodeId, previous: G::NodeId)
fn reconstruct_path_to(&self, last: G::NodeId) -> Vec<G::NodeId>
Auto Trait Implementations§
impl<G> Freeze for PathTracker<G>
impl<G> RefUnwindSafe for PathTracker<G>
impl<G> Send for PathTracker<G>
impl<G> Sync for PathTracker<G>
impl<G> Unpin for PathTracker<G>
impl<G> UnwindSafe for PathTracker<G>
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