pub struct Visit {
pub task: TaskId,
pub arrival: u64,
pub start: u64,
pub finish: u64,
pub reward: u64,
}Expand description
One task of a timed route: when the agent arrives, starts, finishes, and what it earns.
Fields§
§task: TaskIdThe task.
arrival: u64When the agent arrives at the task’s place.
start: u64When the agent starts the task: its arrival, or the task’s earliest start if later.
finish: u64When the agent finishes the task.
reward: u64What the task earns at that finish time.
Trait Implementations§
impl Copy for Visit
impl Eq for Visit
impl StructuralPartialEq for Visit
Auto Trait Implementations§
impl Forget for Visit
impl Freeze for Visit
impl Move for Visit
impl RefUnwindSafe for Visit
impl Send for Visit
impl Sync for Visit
impl Unpin for Visit
impl UnsafeUnpin for Visit
impl UnwindSafe for Visit
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