[−][src]Trait rusty_planner::planner::ProblemSpace
Public trait which - once implemented - describes the problem space to solve.
Associated Types
type State: Copy + Eq + Hash
[src]
Defines the type of your state.
type Iter: Iterator<Item = (Self::State, f64)>
[src]
Iterator for containing states and cost/utility to transition to it.
Required methods
pub fn heuristic(&self, _: &Self::State, _: &Self::State) -> f64
[src]
Heuristic function to calculate the "distance" between two states.
pub fn succ(&self, _: &Self::State) -> Self::Iter
[src]
Given a state calculates the successor states.
pub fn pred(&self, _: &Self::State) -> Self::Iter
[src]
Given a state calculates the predecessor states.