pub struct HallWitness {
pub items: Vec<usize>,
pub slots: Vec<usize>,
}Expand description
A Hall-theorem certificate of infeasibility: items (the set S) can collectively reach only
the slots in slots (a superset of N(S)), and slots.len() < items.len() — so by pigeonhole
the items cannot be placed one-per-slot. Independently checkable via is_hall_witness.
Fields§
§items: Vec<usize>The deficient item set S.
slots: Vec<usize>Slots covering N(S), with slots.len() < items.len().
Trait Implementations§
Source§impl Clone for HallWitness
impl Clone for HallWitness
Source§fn clone(&self) -> HallWitness
fn clone(&self) -> HallWitness
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 HallWitness
impl Debug for HallWitness
Source§impl PartialEq for HallWitness
impl PartialEq for HallWitness
Source§fn eq(&self, other: &HallWitness) -> bool
fn eq(&self, other: &HallWitness) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HallWitness
impl StructuralPartialEq for HallWitness
Auto Trait Implementations§
impl Freeze for HallWitness
impl RefUnwindSafe for HallWitness
impl Send for HallWitness
impl Sync for HallWitness
impl Unpin for HallWitness
impl UnsafeUnpin for HallWitness
impl UnwindSafe for HallWitness
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