Struct pathfinding::astar::AStar
source · pub struct AStar {
pub col: usize,
pub row: usize,
pub map: Box<Vec<Vec<i32>>>,
}Fields§
§col: usize§row: usize§map: Box<Vec<Vec<i32>>>Trait Implementations§
source§impl Map for AStar
impl Map for AStar
fn new() -> MapType
fn load(&mut self, points: Vec<Vec<i32>>) -> RetResult<()>
fn load_from_file<'life0, 'async_trait>(
&'life0 mut self,
file_name: String
) -> Pin<Box<dyn Future<Output = RetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_from_string<'life0, 'async_trait>(
&'life0 mut self,
file_contend: String
) -> Pin<Box<dyn Future<Output = RetResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_path( &self, start: (IndexType, IndexType), end: (IndexType, IndexType) ) -> Vec<(IndexType, IndexType)>
fn set_walkable(&mut self, point: (IndexType, IndexType), walkable: i32)
fn in_map(&self, x: i32, y: i32) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for AStar
impl Send for AStar
impl Sync for AStar
impl Unpin for AStar
impl UnwindSafe for AStar
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