Struct vrp_core::construction::heuristics::BestResultSelector
source · pub struct BestResultSelector {}
Expand description
Selects best result.
Trait Implementations§
source§impl Default for BestResultSelector
impl Default for BestResultSelector
source§fn default() -> BestResultSelector
fn default() -> BestResultSelector
Returns the “default value” for a type. Read more
source§impl ResultSelector for BestResultSelector
impl ResultSelector for BestResultSelector
source§fn select_insertion(
&self,
_: &InsertionContext,
left: InsertionResult,
right: InsertionResult
) -> InsertionResult
fn select_insertion( &self, _: &InsertionContext, left: InsertionResult, right: InsertionResult ) -> InsertionResult
Selects one insertion result from two to promote as best.
source§fn select_cost<'a>(
&self,
left: &'a InsertionCost,
right: &'a InsertionCost
) -> Either<&'a InsertionCost, &'a InsertionCost> ⓘ
fn select_cost<'a>( &self, left: &'a InsertionCost, right: &'a InsertionCost ) -> Either<&'a InsertionCost, &'a InsertionCost> ⓘ
Selects one insertion result from two to promote as best.
Auto Trait Implementations§
impl RefUnwindSafe for BestResultSelector
impl Send for BestResultSelector
impl Sync for BestResultSelector
impl Unpin for BestResultSelector
impl UnwindSafe for BestResultSelector
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