Struct MinimumCoveringSet
pub struct MinimumCoveringSet { /* private fields */ }Expand description
A brute-force minimum covering set-finder.
Implementations§
§impl MinimumCoveringSet
 
impl MinimumCoveringSet
pub fn of(decisions: Vec<Vec<usize>>, num_choices: usize) -> MinimumCoveringSet
pub fn of(decisions: Vec<Vec<usize>>, num_choices: usize) -> MinimumCoveringSet
decisions is a vec of length N, where there are N items to be covered.
Each entry in decisions is a vec containing the indices X of the choices (X < num_choices) that cover this item.
In other words, at least one choice from each vec in decisions must be picked.
Trait Implementations§
§impl Debug for MinimumCoveringSet
 
impl Debug for MinimumCoveringSet
§impl PartialEq<[usize]> for MinimumCoveringSet
 
impl PartialEq<[usize]> for MinimumCoveringSet
Auto Trait Implementations§
impl Freeze for MinimumCoveringSet
impl RefUnwindSafe for MinimumCoveringSet
impl Send for MinimumCoveringSet
impl Sync for MinimumCoveringSet
impl Unpin for MinimumCoveringSet
impl UnwindSafe for MinimumCoveringSet
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
§impl<T> Identity for Twhere
    T: ?Sized,
 
impl<T> Identity for Twhere
    T: ?Sized,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more