pub enum AssignmentOperation<C> {
Match {
source: usize,
target: usize,
cost: C,
},
Double {
source: usize,
target: usize,
cost: C,
},
Insert {
target: usize,
cost: C,
},
Delete {
source: usize,
cost: C,
},
}Expand description
One edit or correspondence in a complete bipartite assignment.
Variants§
Match
One source is paired with one target.
Double
A source supplies an additional target.
Fields
§
cost: CPair cost plus the configured doubling cost.
Insert
A target enters without a source.
Delete
A source leaves without a target.
Trait Implementations§
Source§impl<C: Clone> Clone for AssignmentOperation<C>
impl<C: Clone> Clone for AssignmentOperation<C>
Source§fn clone(&self) -> AssignmentOperation<C>
fn clone(&self) -> AssignmentOperation<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 AssignmentOperation<C>
impl<C: Debug> Debug for AssignmentOperation<C>
impl<C: Eq> Eq for AssignmentOperation<C>
Source§impl<C: PartialEq> PartialEq for AssignmentOperation<C>
impl<C: PartialEq> PartialEq for AssignmentOperation<C>
impl<C: PartialEq> StructuralPartialEq for AssignmentOperation<C>
Auto Trait Implementations§
impl<C> Freeze for AssignmentOperation<C>where
C: Freeze,
impl<C> RefUnwindSafe for AssignmentOperation<C>where
C: RefUnwindSafe,
impl<C> Send for AssignmentOperation<C>where
C: Send,
impl<C> Sync for AssignmentOperation<C>where
C: Sync,
impl<C> Unpin for AssignmentOperation<C>where
C: Unpin,
impl<C> UnsafeUnpin for AssignmentOperation<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for AssignmentOperation<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