pub struct WeightedMatchingResult {
pub mate: Vec<Option<usize>>,
pub matched_edges: Vec<(usize, usize, f64)>,
pub total_weight: f64,
}Expand description
Result of a maximum-weight general matching solve.
Fields§
§mate: Vec<Option<usize>>mate[v] = Some(u) iff v is matched to u; None if unmatched.
matched_edges: Vec<(usize, usize, f64)>The matched edges as (u, v, weight) with u < v, sorted.
total_weight: f64Total weight of the matching.
Trait Implementations§
Source§impl Clone for WeightedMatchingResult
impl Clone for WeightedMatchingResult
Source§fn clone(&self) -> WeightedMatchingResult
fn clone(&self) -> WeightedMatchingResult
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 Debug for WeightedMatchingResult
impl Debug for WeightedMatchingResult
Source§impl PartialEq for WeightedMatchingResult
impl PartialEq for WeightedMatchingResult
Source§fn eq(&self, other: &WeightedMatchingResult) -> bool
fn eq(&self, other: &WeightedMatchingResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WeightedMatchingResult
Auto Trait Implementations§
impl Freeze for WeightedMatchingResult
impl RefUnwindSafe for WeightedMatchingResult
impl Send for WeightedMatchingResult
impl Sync for WeightedMatchingResult
impl Unpin for WeightedMatchingResult
impl UnsafeUnpin for WeightedMatchingResult
impl UnwindSafe for WeightedMatchingResult
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