pub struct DynamicListChangeMove<S> { /* private fields */ }Implementations§
Source§impl<S> DynamicListChangeMove<S>
impl<S> DynamicListChangeMove<S>
pub fn new( slot: DynamicListVariableSlot<S>, source_entity_index: usize, source_position: usize, dest_entity_index: usize, dest_position: usize, ) -> Self
pub fn source_entity_index(&self) -> usize
pub fn source_position(&self) -> usize
pub fn dest_entity_index(&self) -> usize
pub fn dest_position(&self) -> usize
Trait Implementations§
Source§impl<S> Clone for DynamicListChangeMove<S>
impl<S> Clone for DynamicListChangeMove<S>
Source§impl<S> Debug for DynamicListChangeMove<S>
impl<S> Debug for DynamicListChangeMove<S>
Source§impl<S> Move<S> for DynamicListChangeMove<S>where
S: PlanningSolution,
impl<S> Move<S> for DynamicListChangeMove<S>where
S: PlanningSolution,
type Undo = ()
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, (): Self::Undo)
fn descriptor_index(&self) -> usize
fn entity_indices(&self) -> &[usize]
fn variable_name(&self) -> &str
fn telemetry_label(&self) -> &'static str
fn tabu_signature<D: Director<S>>( &self, score_director: &D, ) -> MoveTabuSignature
fn requires_hard_improvement(&self) -> bool
fn requires_score_improvement(&self) -> bool
fn for_each_affected_entity( &self, visitor: &mut dyn FnMut(MoveAffectedEntity<'_>), )
Source§impl<S> MoveCursor<S, DynamicListChangeMove<S>> for DynamicListChangeMoveCursor<S>where
S: PlanningSolution,
impl<S> MoveCursor<S, DynamicListChangeMove<S>> for DynamicListChangeMoveCursor<S>where
S: PlanningSolution,
fn next_candidate(&mut self) -> Option<CandidateId>
fn candidate( &self, id: CandidateId, ) -> Option<MoveCandidateRef<'_, S, DynamicListChangeMove<S>>>
fn take_candidate(&mut self, id: CandidateId) -> DynamicListChangeMove<S>
fn selector_index(&self, _id: CandidateId) -> Option<usize>
Source§impl<S> MoveSelector<S, DynamicListChangeMove<S>> for DynamicListChangeMoveSelector<S>where
S: PlanningSolution,
impl<S> MoveSelector<S, DynamicListChangeMove<S>> for DynamicListChangeMoveSelector<S>where
S: PlanningSolution,
type Cursor<'a> = DynamicListChangeMoveCursor<S> where Self: 'a
fn open_cursor<'a, D: Director<S>>( &'a self, score_director: &D, ) -> Self::Cursor<'a>
fn open_cursor_with_context<'a, D: Director<S>>( &'a self, score_director: &D, context: MoveStreamContext, ) -> Self::Cursor<'a>
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<DynamicListChangeMove<S>>, )
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &D, ) -> MoveSelectorIter<S, M, Self::Cursor<'a>> ⓘ
fn is_never_ending(&self) -> bool
Auto Trait Implementations§
impl<S> Freeze for DynamicListChangeMove<S>
impl<S> !RefUnwindSafe for DynamicListChangeMove<S>
impl<S> Send for DynamicListChangeMove<S>
impl<S> Sync for DynamicListChangeMove<S>
impl<S> Unpin for DynamicListChangeMove<S>
impl<S> UnsafeUnpin for DynamicListChangeMove<S>
impl<S> !UnwindSafe for DynamicListChangeMove<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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