pub struct AStar;Expand description
Weighted static-grid Pathfinder: A* with Manhattan heuristic.
Cost model: sums per-cell traversal_cost on 4-connected edges. Prefer as the
default online weighted baseline; use BFS family for pure hop count, JPS/JPS+ for
open-room cardinal pruning, Dijkstra when no heuristic is wanted.
Implementations§
Source§impl AStar
impl AStar
Sourcepub fn inspect(&self, grid: &Grid, request: SearchRequest) -> AStarInspection
pub fn inspect(&self, grid: &Grid, request: SearchRequest) -> AStarInspection
Runs an instrumented search. Invalid endpoints are reported through
AStarInspection::result with the same errors as Pathfinder::search.
Trait Implementations§
impl Copy for AStar
Source§impl Pathfinder for AStar
impl Pathfinder for AStar
Auto Trait Implementations§
impl Freeze for AStar
impl RefUnwindSafe for AStar
impl Send for AStar
impl Sync for AStar
impl Unpin for AStar
impl UnsafeUnpin for AStar
impl UnwindSafe for AStar
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