pub enum DescriptorEitherMove<S> {
Change(DescriptorChangeMove<S>),
Swap(DescriptorSwapMove<S>),
}Variants§
Change(DescriptorChangeMove<S>)
Swap(DescriptorSwapMove<S>)
Trait Implementations§
Source§impl<S: Clone> Clone for DescriptorEitherMove<S>
impl<S: Clone> Clone for DescriptorEitherMove<S>
Source§fn clone(&self) -> DescriptorEitherMove<S>
fn clone(&self) -> DescriptorEitherMove<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for DescriptorEitherMove<S>
impl<S> Debug for DescriptorEitherMove<S>
Source§impl<S> EntityPlacer<S, DescriptorEitherMove<S>> for DescriptorEntityPlacer<S>where
S: PlanningSolution + 'static,
impl<S> EntityPlacer<S, DescriptorEitherMove<S>> for DescriptorEntityPlacer<S>where
S: PlanningSolution + 'static,
fn get_placements<D: Director<S>>( &self, score_director: &D, ) -> Vec<Placement<S, DescriptorEitherMove<S>>>
Source§impl<S> Move<S> for DescriptorEitherMove<S>where
S: PlanningSolution + 'static,
impl<S> Move<S> for DescriptorEitherMove<S>where
S: PlanningSolution + 'static,
Source§impl<S> MoveSelector<S, DescriptorEitherMove<S>> for DescriptorChangeMoveSelector<S>where
S: PlanningSolution + 'static,
impl<S> MoveSelector<S, DescriptorEitherMove<S>> for DescriptorChangeMoveSelector<S>where
S: PlanningSolution + 'static,
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &'a D, ) -> impl Iterator<Item = DescriptorEitherMove<S>> + 'a
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<M>, )
fn is_never_ending(&self) -> bool
Source§impl<S> MoveSelector<S, DescriptorEitherMove<S>> for DescriptorLeafSelector<S>where
S: PlanningSolution + 'static,
impl<S> MoveSelector<S, DescriptorEitherMove<S>> for DescriptorLeafSelector<S>where
S: PlanningSolution + 'static,
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &'a D, ) -> impl Iterator<Item = DescriptorEitherMove<S>> + 'a
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<M>, )
fn is_never_ending(&self) -> bool
Source§impl<S> MoveSelector<S, DescriptorEitherMove<S>> for DescriptorSwapMoveSelector<S>where
S: PlanningSolution + 'static,
impl<S> MoveSelector<S, DescriptorEitherMove<S>> for DescriptorSwapMoveSelector<S>where
S: PlanningSolution + 'static,
fn iter_moves<'a, D: Director<S>>( &'a self, score_director: &'a D, ) -> impl Iterator<Item = DescriptorEitherMove<S>> + 'a
fn size<D: Director<S>>(&self, score_director: &D) -> usize
fn append_moves<D: Director<S>>( &self, score_director: &D, arena: &mut MoveArena<M>, )
fn is_never_ending(&self) -> bool
Auto Trait Implementations§
impl<S> Freeze for DescriptorEitherMove<S>
impl<S> !RefUnwindSafe for DescriptorEitherMove<S>
impl<S> Send for DescriptorEitherMove<S>
impl<S> Sync for DescriptorEitherMove<S>
impl<S> Unpin for DescriptorEitherMove<S>
impl<S> UnsafeUnpin for DescriptorEitherMove<S>
impl<S> !UnwindSafe for DescriptorEitherMove<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