pub struct QueuedEntityPlacer<S, V, ES, VS>{ /* private fields */ }Expand description
A queued entity placer that processes entities in order.
For each uninitialized entity, generates change moves for all possible values. Uses typed function pointers for zero-erasure access.
§Type Parameters
S- The planning solution typeV- The value typeES- The entity selector typeVS- The value selector type
Implementations§
Source§impl<S, V, ES, VS> QueuedEntityPlacer<S, V, ES, VS>
impl<S, V, ES, VS> QueuedEntityPlacer<S, V, ES, VS>
Trait Implementations§
Source§impl<S, V, ES, VS> Debug for QueuedEntityPlacer<S, V, ES, VS>
impl<S, V, ES, VS> Debug for QueuedEntityPlacer<S, V, ES, VS>
Source§impl<S, V, ES, VS> EntityPlacer<S, ChangeMove<S, V>> for QueuedEntityPlacer<S, V, ES, VS>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
ES: EntitySelector<S>,
VS: TypedValueSelector<S, V>,
impl<S, V, ES, VS> EntityPlacer<S, ChangeMove<S, V>> for QueuedEntityPlacer<S, V, ES, VS>where
S: PlanningSolution,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
ES: EntitySelector<S>,
VS: TypedValueSelector<S, V>,
Source§fn get_placements<D: ScoreDirector<S>>(
&self,
score_director: &D,
) -> Vec<Placement<S, ChangeMove<S, V>>>
fn get_placements<D: ScoreDirector<S>>( &self, score_director: &D, ) -> Vec<Placement<S, ChangeMove<S, V>>>
Returns all placements (entities + their candidate moves).
Auto Trait Implementations§
impl<S, V, ES, VS> Freeze for QueuedEntityPlacer<S, V, ES, VS>
impl<S, V, ES, VS> RefUnwindSafe for QueuedEntityPlacer<S, V, ES, VS>
impl<S, V, ES, VS> Send for QueuedEntityPlacer<S, V, ES, VS>where
V: Send,
impl<S, V, ES, VS> Sync for QueuedEntityPlacer<S, V, ES, VS>
impl<S, V, ES, VS> Unpin for QueuedEntityPlacer<S, V, ES, VS>
impl<S, V, ES, VS> UnwindSafe for QueuedEntityPlacer<S, V, ES, VS>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more