pub struct Assignment<C> {
pub operations: Vec<AssignmentOperation<C>>,
pub total_cost: C,
pub certificate: AssignmentCertificate<C>,
pub receipt: AlgorithmReceipt,
}Expand description
A complete minimum-cost assignment and its optimality certificate.
Fields§
§operations: Vec<AssignmentOperation<C>>Operations in stable source/target order.
total_cost: CExact sum of operation costs.
certificate: AssignmentCertificate<C>Independently checkable optimality witness.
receipt: AlgorithmReceiptDeterministic cell/edge work accounting for the solve.
Trait Implementations§
Source§impl<C: Clone> Clone for Assignment<C>
impl<C: Clone> Clone for Assignment<C>
Source§fn clone(&self) -> Assignment<C>
fn clone(&self) -> Assignment<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug> Debug for Assignment<C>
impl<C: Debug> Debug for Assignment<C>
impl<C: Eq> Eq for Assignment<C>
Source§impl<C: PartialEq> PartialEq for Assignment<C>
impl<C: PartialEq> PartialEq for Assignment<C>
impl<C: PartialEq> StructuralPartialEq for Assignment<C>
Auto Trait Implementations§
impl<C> Freeze for Assignment<C>where
C: Freeze,
impl<C> RefUnwindSafe for Assignment<C>where
C: RefUnwindSafe,
impl<C> Send for Assignment<C>where
C: Send,
impl<C> Sync for Assignment<C>where
C: Sync,
impl<C> Unpin for Assignment<C>where
C: Unpin,
impl<C> UnsafeUnpin for Assignment<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Assignment<C>where
C: 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