pub struct AssignmentOutput {
pub assignments: Vec<(usize, usize)>,
pub total_cost: f64,
}Expand description
Output for task assignment
Fields§
§assignments: Vec<(usize, usize)>Assignments as (agent_index, task_index) pairs
total_cost: f64Total cost of all assignments
Implementations§
Trait Implementations§
Source§impl Clone for AssignmentOutput
impl Clone for AssignmentOutput
Source§fn clone(&self) -> AssignmentOutput
fn clone(&self) -> AssignmentOutput
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 AssignmentOutput
impl Debug for AssignmentOutput
Source§impl<'de> Deserialize<'de> for AssignmentOutput
impl<'de> Deserialize<'de> for AssignmentOutput
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 AssignmentOutput
impl RefUnwindSafe for AssignmentOutput
impl Send for AssignmentOutput
impl Sync for AssignmentOutput
impl Unpin for AssignmentOutput
impl UnsafeUnpin for AssignmentOutput
impl UnwindSafe for AssignmentOutput
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