pub struct DynamicActivityCost { /* private fields */ }
Expand description
Provides way to calculate activity costs which might contain reserved time.
Implementations
sourceimpl DynamicActivityCost
impl DynamicActivityCost
sourcepub fn new(reserved_times_index: ReservedTimesIndex) -> Result<Self, String>
pub fn new(reserved_times_index: ReservedTimesIndex) -> Result<Self, String>
Creates a new instance of DynamicActivityCost
with given reserved time function.
Trait Implementations
sourceimpl ActivityCost for DynamicActivityCost
impl ActivityCost for DynamicActivityCost
sourcefn 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 !RefUnwindSafe for DynamicActivityCost
impl Send for DynamicActivityCost
impl Sync for DynamicActivityCost
impl Unpin for DynamicActivityCost
impl !UnwindSafe for DynamicActivityCost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more