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