pub struct AStarResult<N> {
pub path: Vec<N>,
pub cost: f64,
}Expand description
Result of a successful A* search.
Fields§
§path: Vec<N>The sequence of nodes from start to goal (inclusive).
cost: f64Total cost of the path.
Trait Implementations§
Source§impl<N: Clone> Clone for AStarResult<N>
impl<N: Clone> Clone for AStarResult<N>
Source§fn clone(&self) -> AStarResult<N>
fn clone(&self) -> AStarResult<N>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<N> Freeze for AStarResult<N>
impl<N> RefUnwindSafe for AStarResult<N>where
N: RefUnwindSafe,
impl<N> Send for AStarResult<N>where
N: Send,
impl<N> Sync for AStarResult<N>where
N: Sync,
impl<N> Unpin for AStarResult<N>where
N: Unpin,
impl<N> UnsafeUnpin for AStarResult<N>
impl<N> UnwindSafe for AStarResult<N>where
N: 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