pub trait EntitySelector<S: PlanningSolution>: Send + Debug {
// Required methods
fn iter<'a, D: Director<S>>(
&'a self,
score_director: &'a D,
) -> impl Iterator<Item = EntityReference> + 'a;
fn size<D: Director<S>>(&self, score_director: &D) -> usize;
// Provided method
fn is_never_ending(&self) -> bool { ... }
}Expand description
Trait for selecting entities from a planning solution.
Entity selectors provide an iteration order over the entities that the solver will consider for moves.
§Type Parameters
S- The planning solution type
Required Methods§
fn iter<'a, D: Director<S>>( &'a self, score_director: &'a D, ) -> impl Iterator<Item = EntityReference> + 'a
fn size<D: Director<S>>(&self, score_director: &D) -> usize
Provided Methods§
fn is_never_ending(&self) -> bool
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.