pub struct RuntimeCompoundMove<S> { /* private fields */ }Expand description
A selected runtime-provider result. The callback reason is a compact per-run arena ID. It deliberately never participates in tabu or candidate-trace identity, and candidate moves never clone/refcount labels.
Trait Implementations§
Source§impl<S> Debug for RuntimeCompoundMove<S>
impl<S> Debug for RuntimeCompoundMove<S>
Source§impl<S> Move<S> for RuntimeCompoundMove<S>where
S: PlanningSolution,
impl<S> Move<S> for RuntimeCompoundMove<S>where
S: PlanningSolution,
type Undo = SmallVec<[Option<usize>; 8]>
fn is_doable<D: Director<S>>(&self, score_director: &D) -> bool
fn do_move<D: Director<S>>(&self, score_director: &mut D) -> Self::Undo
fn undo_move<D: Director<S>>(&self, score_director: &mut D, undo: Self::Undo)
fn descriptor_index(&self) -> usize
fn entity_indices(&self) -> &[usize]
fn variable_name(&self) -> &str
fn telemetry_label(&self) -> &'static str
fn requires_hard_improvement(&self) -> bool
fn tabu_signature<D: Director<S>>( &self, score_director: &D, ) -> MoveTabuSignature
Source§fn candidate_trace_identity(&self) -> Option<CandidateTraceIdentity>
fn candidate_trace_identity(&self) -> Option<CandidateTraceIdentity>
Returns the canonical identity used by opt-in candidate-pull tracing. Read more
Source§fn for_each_affected_entity<V: FnMut(MoveAffectedEntity<'_>)>(
&self,
visitor: &mut V,
)
fn for_each_affected_entity<V: FnMut(MoveAffectedEntity<'_>)>( &self, visitor: &mut V, )
Visits every entity this move changes, passing a concrete visitor by
value.
V stays monomorphized end to end: no dyn dispatch, no
intermediate collection, every affected entity reported exactly once
in the move’s own canonical order.fn do_move_with_scratch<D: Director<S>>( &self, score_director: &mut D, journal_pool: &mut Vec<Self::Undo>, ) -> Self::Undo
fn undo_move_with_scratch<D: Director<S>>( &self, score_director: &mut D, undo: Self::Undo, journal_pool: &mut Vec<Self::Undo>, )
fn is_doable_with_working_preview<D: Director<S>>( &self, score_director: &mut D, ) -> bool
fn requires_score_improvement(&self) -> bool
fn borrowed_tabu_signature(&self) -> Option<&MoveTabuSignature>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for RuntimeCompoundMove<S>
impl<S> !UnwindSafe for RuntimeCompoundMove<S>
impl<S> Freeze for RuntimeCompoundMove<S>
impl<S> Send for RuntimeCompoundMove<S>
impl<S> Sync for RuntimeCompoundMove<S>
impl<S> Unpin for RuntimeCompoundMove<S>
impl<S> UnsafeUnpin for RuntimeCompoundMove<S>
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