Enum vrp_core::construction::heuristics::LegSelection
source · pub enum LegSelection {
Stochastic(Arc<dyn Random + Send + Sync>),
Exhaustive,
}
Expand description
Provides way to control routing leg selection mode.
Variants§
Stochastic(Arc<dyn Random + Send + Sync>)
Stochastic mode: depending on route size, not all legs could be selected.
Exhaustive
Exhaustive mode: all legs are selected.
Trait Implementations§
source§impl Clone for LegSelection
impl Clone for LegSelection
source§fn clone(&self) -> LegSelection
fn clone(&self) -> LegSelection
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for LegSelection
impl Send for LegSelection
impl Sync for LegSelection
impl Unpin for LegSelection
impl !UnwindSafe for LegSelection
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