pub enum Conflict {
Vertex {
agents: (AgentId, AgentId),
vertex: Vertex,
time: Time,
},
Edge {
agents: (AgentId, AgentId),
from: Vertex,
to: Vertex,
time: Time,
},
}Expand description
A conflict between the paths of two agents.
Variants§
Vertex
Both agents occupy vertex at time.
Fields
Edge
The agents swap vertices: the first moves from -> to while the second moves
to -> from, between time and time + 1. from != to.
Implementations§
Trait Implementations§
impl Copy for Conflict
impl Eq for Conflict
impl StructuralPartialEq for Conflict
Auto Trait Implementations§
impl Forget for Conflict
impl Freeze for Conflict
impl Move for Conflict
impl RefUnwindSafe for Conflict
impl Send for Conflict
impl Sync for Conflict
impl Unpin for Conflict
impl UnsafeUnpin for Conflict
impl UnwindSafe for Conflict
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