pub struct RecreateWithSkipRandom { /* private fields */ }Expand description
A recreate method which skips random jobs and routes.
Implementations§
Source§impl RecreateWithSkipRandom
impl RecreateWithSkipRandom
Sourcepub fn default_explorative_phased(
default_recreate: Arc<dyn Recreate>,
random: Arc<dyn Random>,
) -> PhasedRecreate
pub fn default_explorative_phased( default_recreate: Arc<dyn Recreate>, random: Arc<dyn Random>, ) -> PhasedRecreate
Creates RecreateWithSkipRandom as PhasedRecreate which runs only in exploration phase.
Trait Implementations§
Source§impl Recreate for RecreateWithSkipRandom
impl Recreate for RecreateWithSkipRandom
Source§fn run(
&self,
refinement_ctx: &RefinementContext,
insertion_ctx: InsertionContext,
) -> InsertionContext
fn run( &self, refinement_ctx: &RefinementContext, insertion_ctx: InsertionContext, ) -> InsertionContext
Recreates a new solution from the given.
Auto Trait Implementations§
impl Freeze for RecreateWithSkipRandom
impl !RefUnwindSafe for RecreateWithSkipRandom
impl Send for RecreateWithSkipRandom
impl Sync for RecreateWithSkipRandom
impl Unpin for RecreateWithSkipRandom
impl !UnwindSafe for RecreateWithSkipRandom
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> 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