Struct vrp_core::construction::heuristics::InsertionSuccess
source · pub struct InsertionSuccess {
pub cost: InsertionCost,
pub job: Job,
pub activities: Vec<(Activity, usize)>,
pub actor: Arc<Actor>,
}
Expand description
Specifies insertion success result needed to insert job into tour.
Fields§
§cost: InsertionCost
Specifies delta cost change for the insertion.
job: Job
Original job to be inserted.
activities: Vec<(Activity, usize)>
Specifies activities within index where they have to be inserted.
actor: Arc<Actor>
Specifies actor to be used.
Trait Implementations§
source§impl Debug for InsertionSuccess
impl Debug for InsertionSuccess
source§impl TryFrom<InsertionResult> for InsertionSuccess
impl TryFrom<InsertionResult> for InsertionSuccess
§type Error = InsertionFailure
type Error = InsertionFailure
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for InsertionSuccess
impl Send for InsertionSuccess
impl Sync for InsertionSuccess
impl Unpin for InsertionSuccess
impl !UnwindSafe for InsertionSuccess
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