pub trait Searchable: Sized {
// Required method
fn next_states(&self) -> impl Iterator<Item = Self>;
}Expand description
Basic trait for depth-first and breadth-first search space exploration.
Implement this + SolutionIdentifiable for your state type to perform search-space exploration.
Required Methods§
Sourcefn next_states(&self) -> impl Iterator<Item = Self>
fn next_states(&self) -> impl Iterator<Item = Self>
Yield all adjacent explorable states reachable from this state.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.