pub enum NeighborhoodLeafCursor<'a, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,{
Scalar(MappedMoveCursor<S, ScalarMoveUnion<S, usize>, NeighborhoodMove<S, V>, <ScalarLeafSelector<S> as MoveSelector<S, ScalarMoveUnion<S, usize>>>::Cursor<'a>, fn(ScalarMoveUnion<S, usize>) -> NeighborhoodMove<S, V>>),
List(MappedMoveCursor<S, ListMoveUnion<S, V>, NeighborhoodMove<S, V>, <ListLeafSelector<S, V, DM, IDM> as MoveSelector<S, ListMoveUnion<S, V>>>::Cursor<'a>, fn(ListMoveUnion<S, V>) -> NeighborhoodMove<S, V>>),
ConflictRepair(MappedMoveCursor<S, ScalarMoveUnion<S, usize>, NeighborhoodMove<S, V>, <ConflictRepairSelector<S> as MoveSelector<S, ScalarMoveUnion<S, usize>>>::Cursor<'a>, fn(ScalarMoveUnion<S, usize>) -> NeighborhoodMove<S, V>>),
GroupedScalar(MappedMoveCursor<S, ScalarMoveUnion<S, usize>, NeighborhoodMove<S, V>, <GroupedScalarSelector<S> as MoveSelector<S, ScalarMoveUnion<S, usize>>>::Cursor<'a>, fn(ScalarMoveUnion<S, usize>) -> NeighborhoodMove<S, V>>),
}Variants§
Scalar(MappedMoveCursor<S, ScalarMoveUnion<S, usize>, NeighborhoodMove<S, V>, <ScalarLeafSelector<S> as MoveSelector<S, ScalarMoveUnion<S, usize>>>::Cursor<'a>, fn(ScalarMoveUnion<S, usize>) -> NeighborhoodMove<S, V>>)
List(MappedMoveCursor<S, ListMoveUnion<S, V>, NeighborhoodMove<S, V>, <ListLeafSelector<S, V, DM, IDM> as MoveSelector<S, ListMoveUnion<S, V>>>::Cursor<'a>, fn(ListMoveUnion<S, V>) -> NeighborhoodMove<S, V>>)
ConflictRepair(MappedMoveCursor<S, ScalarMoveUnion<S, usize>, NeighborhoodMove<S, V>, <ConflictRepairSelector<S> as MoveSelector<S, ScalarMoveUnion<S, usize>>>::Cursor<'a>, fn(ScalarMoveUnion<S, usize>) -> NeighborhoodMove<S, V>>)
GroupedScalar(MappedMoveCursor<S, ScalarMoveUnion<S, usize>, NeighborhoodMove<S, V>, <GroupedScalarSelector<S> as MoveSelector<S, ScalarMoveUnion<S, usize>>>::Cursor<'a>, fn(ScalarMoveUnion<S, usize>) -> NeighborhoodMove<S, V>>)
Trait Implementations§
Source§impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for NeighborhoodLeafCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
impl<S, V, DM, IDM> MoveCursor<S, NeighborhoodMove<S, V>> for NeighborhoodLeafCursor<'_, S, V, DM, IDM>where
S: PlanningSolution + 'static,
V: Clone + PartialEq + Send + Sync + Debug + 'static,
DM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
IDM: CrossEntityDistanceMeter<S> + Clone + Debug + 'static,
fn next_candidate(&mut self) -> Option<CandidateId>
fn candidate( &self, index: CandidateId, ) -> Option<MoveCandidateRef<'_, S, NeighborhoodMove<S, V>>>
fn take_candidate(&mut self, index: CandidateId) -> NeighborhoodMove<S, V>
fn selector_index(&self, index: CandidateId) -> Option<usize>
Auto Trait Implementations§
impl<'a, S, V, DM, IDM> Freeze for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
impl<'a, S, V, DM, IDM> RefUnwindSafe for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
impl<'a, S, V, DM, IDM> Send for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
impl<'a, S, V, DM, IDM> Sync for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
impl<'a, S, V, DM, IDM> Unpin for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
impl<'a, S, V, DM, IDM> UnsafeUnpin for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
impl<'a, S, V, DM, IDM> UnwindSafe for NeighborhoodLeafCursor<'a, S, V, DM, IDM>
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