Struct vrp_core::construction::enablers::DynamicActivityCost
source · pub struct DynamicActivityCost { /* private fields */ }
Expand description
Provides way to calculate activity costs which might contain reserved time.
Implementations§
source§impl DynamicActivityCost
impl DynamicActivityCost
sourcepub fn new(
reserved_times_index: ReservedTimesIndex,
) -> Result<Self, GenericError>
pub fn new( reserved_times_index: ReservedTimesIndex, ) -> Result<Self, GenericError>
Creates a new instance of DynamicActivityCost
with given reserved time function.
Trait Implementations§
source§impl ActivityCost for DynamicActivityCost
impl ActivityCost for DynamicActivityCost
source§fn estimate_departure(
&self,
route: &Route,
activity: &Activity,
arrival: Timestamp,
) -> Timestamp
fn estimate_departure( &self, route: &Route, activity: &Activity, arrival: Timestamp, ) -> Timestamp
Estimates departure time for activity and actor at given arrival time.
Auto Trait Implementations§
impl Freeze for DynamicActivityCost
impl !RefUnwindSafe for DynamicActivityCost
impl Send for DynamicActivityCost
impl Sync for DynamicActivityCost
impl Unpin for DynamicActivityCost
impl !UnwindSafe for DynamicActivityCost
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