pub struct CapHallWitness {
pub items: Vec<usize>,
pub slots: Vec<usize>,
}Expand description
A capacitated Hall certificate: the items in S can only reach the slots in slots, whose
total capacity is strictly less than |S| — so they cannot all be placed. Re-checkable via
is_cap_hall_witness.
Fields§
§items: Vec<usize>The deficient item set S.
slots: Vec<usize>Slots covering N(S), with Σ capacities[s] < |S|.
Trait Implementations§
Source§impl Clone for CapHallWitness
impl Clone for CapHallWitness
Source§fn clone(&self) -> CapHallWitness
fn clone(&self) -> CapHallWitness
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 CapHallWitness
impl Debug for CapHallWitness
Source§impl PartialEq for CapHallWitness
impl PartialEq for CapHallWitness
Source§fn eq(&self, other: &CapHallWitness) -> bool
fn eq(&self, other: &CapHallWitness) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CapHallWitness
impl StructuralPartialEq for CapHallWitness
Auto Trait Implementations§
impl Freeze for CapHallWitness
impl RefUnwindSafe for CapHallWitness
impl Send for CapHallWitness
impl Sync for CapHallWitness
impl Unpin for CapHallWitness
impl UnsafeUnpin for CapHallWitness
impl UnwindSafe for CapHallWitness
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