pub struct Solution {
pub paths: Vec<Path>,
pub sum_of_costs: u32,
pub makespan: u32,
}Expand description
A conflict-free plan: one path per agent.
Fields§
§paths: Vec<Path>The path of each agent, indexed by AgentId. Each starts at the
agent’s start and ends at its goal, where the agent stays.
sum_of_costs: u32The sum of costs of Solution::paths (see sum_of_costs).
makespan: u32The makespan of Solution::paths (see makespan).
Implementations§
Trait Implementations§
impl Eq for Solution
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl Forget for Solution
impl Freeze for Solution
impl Move for Solution
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnsafeUnpin for Solution
impl UnwindSafe for Solution
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