pub enum PathStatus {
Found {
cost: f32,
},
Unreachable,
Pending,
}Expand description
Result of an A* call.
Variants§
Found
The output path holds the start, every cell stepped through, and the
goal. cost is the summed cost of entering each cell after the start.
Unreachable
No path exists; the output path is empty.
Pending
The expansion budget ran out. Call PathFinder::resume with the same
grid to continue; the output path is empty until the search finishes.
Trait Implementations§
Source§impl Clone for PathStatus
impl Clone for PathStatus
impl Copy for PathStatus
Source§impl Debug for PathStatus
impl Debug for PathStatus
Source§impl PartialEq for PathStatus
impl PartialEq for PathStatus
impl StructuralPartialEq for PathStatus
Auto Trait Implementations§
impl Freeze for PathStatus
impl RefUnwindSafe for PathStatus
impl Send for PathStatus
impl Sync for PathStatus
impl Unpin for PathStatus
impl UnsafeUnpin for PathStatus
impl UnwindSafe for PathStatus
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