Trait vrp_core::construction::heuristics::ResultSelector
source · pub trait ResultSelector {
// Required method
fn select_insertion(
&self,
ctx: &InsertionContext,
left: InsertionResult,
right: InsertionResult
) -> InsertionResult;
// Provided method
fn select_cost<'a>(
&self,
left: &'a InsertionCost,
right: &'a InsertionCost
) -> Either<&'a InsertionCost, &'a InsertionCost> ⓘ { ... }
}
Expand description
Insertion result selector.
Required Methods§
sourcefn select_insertion(
&self,
ctx: &InsertionContext,
left: InsertionResult,
right: InsertionResult
) -> InsertionResult
fn select_insertion( &self, ctx: &InsertionContext, left: InsertionResult, right: InsertionResult ) -> InsertionResult
Selects one insertion result from two to promote as best.
Provided Methods§
sourcefn 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.