Trait rdcl_aoc_helpers::search::Navigable
source · pub trait Navigable {
type Point;
fn distance_score(&self, a: &Self::Point, b: &Self::Point) -> u64;
fn get_neighbours(&self, point: &Self::Point) -> Vec<(u64, Self::Point)>;
fn find_shortest_path(
&self,
start: &Self::Point,
end: &Self::Point
) -> Option<Vec<Self::Point>>
where
Self::Point: Hash + PartialEq + Eq + Clone,
{ ... }
}
Expand description
This trait allows searching algorithms to navigate a space.
Required Associated Types
Required Methods
sourcefn distance_score(&self, a: &Self::Point, b: &Self::Point) -> u64
fn distance_score(&self, a: &Self::Point, b: &Self::Point) -> u64
The distance score between points a and b.