pub struct AStarConfig<OS, CF, GS> {
pub open_set: OS,
pub came_from: CF,
pub g_score: GS,
}Expand description
Configuration structure for A* algorithm to avoid too many function parameters
Fields§
§open_set: OSMap to track nodes in the open set with their f-scores
came_from: CFMap to track the path (parent of each node)
g_score: GSMap to store actual cost from start to each node
Auto Trait Implementations§
impl<OS, CF, GS> Freeze for AStarConfig<OS, CF, GS>
impl<OS, CF, GS> RefUnwindSafe for AStarConfig<OS, CF, GS>
impl<OS, CF, GS> Send for AStarConfig<OS, CF, GS>
impl<OS, CF, GS> Sync for AStarConfig<OS, CF, GS>
impl<OS, CF, GS> Unpin for AStarConfig<OS, CF, GS>
impl<OS, CF, GS> UnsafeUnpin for AStarConfig<OS, CF, GS>
impl<OS, CF, GS> UnwindSafe for AStarConfig<OS, CF, GS>
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