pub struct AssignmentSolution {
pub assignments: Vec<usize>,
pub total_cost: Cost,
pub status: SolverStatus,
pub stats: SolverStats,
}Expand description
Solution to an assignment problem
Fields§
§assignments: Vec<usize>Assignment: assignments[agent] = task
total_cost: CostTotal cost of the assignment
status: SolverStatusSolver status
stats: SolverStatsSolver statistics
Implementations§
Trait Implementations§
Source§impl Clone for AssignmentSolution
impl Clone for AssignmentSolution
Source§fn clone(&self) -> AssignmentSolution
fn clone(&self) -> AssignmentSolution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssignmentSolution
impl Debug for AssignmentSolution
Source§impl<'de> Deserialize<'de> for AssignmentSolution
impl<'de> Deserialize<'de> for AssignmentSolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssignmentSolution
impl RefUnwindSafe for AssignmentSolution
impl Send for AssignmentSolution
impl Sync for AssignmentSolution
impl Unpin for AssignmentSolution
impl UnsafeUnpin for AssignmentSolution
impl UnwindSafe for AssignmentSolution
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