pub struct LapSolution<A> {
pub row_ind: Vec<usize>,
pub col_ind: Vec<usize>,
pub cost: A,
}Expand description
An optimal assignment.
Fields§
§row_ind: Vec<usize>Matched rows, increasing.
col_ind: Vec<usize>col_ind[k] is the column matched to row_ind[k].
cost: ATotal cost of the matched pairs, in the original sign.
Trait Implementations§
Source§impl<A: Clone> Clone for LapSolution<A>
impl<A: Clone> Clone for LapSolution<A>
Source§impl<A: Debug> Debug for LapSolution<A>
impl<A: Debug> Debug for LapSolution<A>
Source§impl<A: PartialEq> PartialEq for LapSolution<A>
impl<A: PartialEq> PartialEq for LapSolution<A>
impl<A: PartialEq> StructuralPartialEq for LapSolution<A>
Auto Trait Implementations§
impl<A> Forget for LapSolution<A>
impl<A> Freeze for LapSolution<A>where
A: Freeze,
impl<A> Move for LapSolution<A>
impl<A> RefUnwindSafe for LapSolution<A>where
A: RefUnwindSafe,
impl<A> Send for LapSolution<A>where
A: Send,
impl<A> Sync for LapSolution<A>where
A: Sync,
impl<A> Unpin for LapSolution<A>where
A: Unpin,
impl<A> UnsafeUnpin for LapSolution<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for LapSolution<A>where
A: UnwindSafe,
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