pub struct Agent {
pub start: Vertex,
pub goal: Vertex,
}Expand description
One agent: where it starts and where it must end up and stay.
Fields§
§start: VertexThe vertex the agent occupies at time 0.
goal: VertexThe vertex the agent must reach and then occupy forever (goal-stay semantics).
Trait Implementations§
impl Copy for Agent
impl Eq for Agent
impl StructuralPartialEq for Agent
Auto Trait Implementations§
impl Forget for Agent
impl Freeze for Agent
impl Move for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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