Function screeps::pathfinder::search[][src]

pub fn search<'a, O: ?Sized, G: ?Sized, F>(
    origin: &O,
    goal: &G,
    range: u32,
    opts: SearchOptions<'a, F>
) -> SearchResults where
    O: HasPosition,
    G: HasPosition,
    F: FnMut(RoomName) -> MultiRoomCostResult<'a> + 'a, 

Searches between a single origin and single goal.