pub struct Path {
pub steps: Vec<Step>,
pub cost: f64,
pub partial: bool,
pub expanded: usize,
pub version: Version,
}Expand description
A planned path.
Fields§
§steps: Vec<Step>steps[0] is the start; the last step reaches the goal (or the best node found).
cost: f64Estimated cost in ticks.
partial: boolThe goal was not reached (node budget, unknown terrain, or unreachable): the path ends at the node closest to the goal (or, when the node budget ran out with no node closer than the start, at the most promising node not expanded yet). Replan from there.
expanded: usizeNodes expanded.
version: VersionThe version the path was planned for.
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Forget for Path
impl Freeze for Path
impl Move for Path
impl RefUnwindSafe for Path
impl Send for Pathwhere
RawVecInner: Send,
impl Sync for Pathwhere
RawVecInner: Sync,
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Pathwhere
RawVecInner: UnwindSafe,
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