pub trait PillarSelector<S: PlanningSolution>: Send + Debug {
// Required methods
fn iter<'a, D: Director<S>>(
&'a self,
score_director: &'a D,
) -> impl Iterator<Item = Pillar> + 'a;
fn size<D: Director<S>>(&self, score_director: &D) -> usize;
fn descriptor_index(&self) -> usize;
// Provided method
fn is_never_ending(&self) -> bool { ... }
}Expand description
Trait for selecting pillars of entities.
A pillar selector groups entities by their variable values and returns groups (pillars) that can be moved together.
§Type Parameters
S- The planning solution type
Required Methods§
fn iter<'a, D: Director<S>>( &'a self, score_director: &'a D, ) -> impl Iterator<Item = Pillar> + 'a
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn descriptor_index(&self) -> 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.