pub struct GridPath {
pub cells: Vec<Cell>,
pub cost: f64,
}Expand description
Result of an A* search.
Fields§
§cells: Vec<Cell>Sequence of (x, y) cells from start to goal (inclusive).
cost: f64Total traversal cost.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GridPath
impl<'de> Deserialize<'de> for GridPath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GridPath
impl RefUnwindSafe for GridPath
impl Send for GridPath
impl Sync for GridPath
impl Unpin for GridPath
impl UnsafeUnpin for GridPath
impl UnwindSafe for GridPath
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