pub enum MatchOutcome {
Feasible(Vec<usize>),
Infeasible(HallWitness),
}Expand description
The outcome of a bipartite “each slot holds at most one item” feasibility check.
Variants§
Feasible(Vec<usize>)
Every item placed: assignment[i] is the slot item i takes (all distinct).
Infeasible(HallWitness)
No assignment exists, witnessed by a deficient set of items.
Trait Implementations§
Source§impl Clone for MatchOutcome
impl Clone for MatchOutcome
Source§fn clone(&self) -> MatchOutcome
fn clone(&self) -> MatchOutcome
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 MatchOutcome
impl Debug for MatchOutcome
Source§impl PartialEq for MatchOutcome
impl PartialEq for MatchOutcome
Source§fn eq(&self, other: &MatchOutcome) -> bool
fn eq(&self, other: &MatchOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MatchOutcome
impl StructuralPartialEq for MatchOutcome
Auto Trait Implementations§
impl Freeze for MatchOutcome
impl RefUnwindSafe for MatchOutcome
impl Send for MatchOutcome
impl Sync for MatchOutcome
impl Unpin for MatchOutcome
impl UnsafeUnpin for MatchOutcome
impl UnwindSafe for MatchOutcome
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