Struct grid_search::BfsContext
[−]
[src]
pub struct BfsContext { /* fields omitted */ }
Methods
impl BfsContext
[src]
fn new(size: Size) -> Self
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn size(&self) -> Size
[src]
fn bfs<G, V, D>(
&mut self,
grid: &G,
start: Coord,
goal: Coord,
directions: D,
path: &mut Vec<Direction>
) -> Result<SearchMetadata, Error> where
G: SolidGrid,
V: Into<Direction>,
D: Copy + IntoIterator<Item = V>,
[src]
&mut self,
grid: &G,
start: Coord,
goal: Coord,
directions: D,
path: &mut Vec<Direction>
) -> Result<SearchMetadata, Error> where
G: SolidGrid,
V: Into<Direction>,
D: Copy + IntoIterator<Item = V>,
fn populate_dijkstra_map<G, V, D, C>(
&mut self,
grid: &G,
start: Coord,
directions: D,
dijkstra_map: &mut DijkstraMap<C>
) -> Result<SearchMetadata, Error> where
G: SolidGrid,
V: Into<Direction>,
D: Copy + IntoIterator<Item = V>,
C: Copy + Zero + One + Add<C>,
[src]
&mut self,
grid: &G,
start: Coord,
directions: D,
dijkstra_map: &mut DijkstraMap<C>
) -> Result<SearchMetadata, Error> where
G: SolidGrid,
V: Into<Direction>,
D: Copy + IntoIterator<Item = V>,
C: Copy + Zero + One + Add<C>,
Trait Implementations
impl Debug for BfsContext
[src]
impl Clone for BfsContext
[src]
fn clone(&self) -> BfsContext
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more