pub struct Windowed<R> { /* private fields */ }Expand description
A route that keeps each task within a window imposed by the starts of its partners.
Implementations§
Trait Implementations§
Source§impl<R: Route> Route for Windowed<R>
impl<R: Route> Route for Windowed<R>
Source§fn earliest_start(&self, task: TaskId) -> u64
fn earliest_start(&self, task: TaskId) -> u64
The route’s own earliest start, or the partners’ when later.
Source§fn reward(&self, task: TaskId, finish: u64) -> Option<u64>
fn reward(&self, task: TaskId, finish: u64) -> Option<u64>
The route’s reward, or None when the task would start after its partners allow.
Source§type Place = <R as Route>::Place
type Place = <R as Route>::Place
Where the agent can be: a node of a graph, a grid cell, a point.
Auto Trait Implementations§
impl<R> !Freeze for Windowed<R>
impl<R> !RefUnwindSafe for Windowed<R>
impl<R> !Sync for Windowed<R>
impl<R> Forget for Windowed<R>
impl<R> Move for Windowed<R>
impl<R> Send for Windowed<R>where
R: Send,
impl<R> Unpin for Windowed<R>where
R: Unpin,
impl<R> UnsafeUnpin for Windowed<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Windowed<R>where
R: UnwindSafe,
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