Trait rusty_planner::planner::ProblemSpace
source · pub trait ProblemSpace {
type State: Copy + Eq + Hash;
type Iter: Iterator<Item = (Self::State, f64)>;
// Required methods
fn heuristic(&self, _: &Self::State, _: &Self::State) -> f64;
fn succ(&self, _: &Self::State) -> Self::Iter;
fn pred(&self, _: &Self::State) -> Self::Iter;
}
Expand description
Public trait which - once implemented - describes the problem space to solve.