pub struct SearchMap {
pub costs: Grid<Option<Cost>>,
pub reached_from: Grid<Option<Point>>,
}Expand description
Map structure used for holding movement costs and parent nodes.
Fields§
§costs: Grid<Option<Cost>>Cheapest known cost from each point to the goal set, or None when unreachable.
reached_from: Grid<Option<Point>>The next point toward a goal for each reachable point.
Trait Implementations§
impl StructuralPartialEq for SearchMap
Auto Trait Implementations§
impl Freeze for SearchMap
impl RefUnwindSafe for SearchMap
impl Send for SearchMap
impl Sync for SearchMap
impl Unpin for SearchMap
impl UnsafeUnpin for SearchMap
impl UnwindSafe for SearchMap
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