pub struct SetCoverProblem {
pub num_elements: usize,
pub sets: Vec<(Cost, Vec<usize>)>,
}Expand description
A set cover problem instance
Fields§
§num_elements: usizeNumber of elements to cover
sets: Vec<(Cost, Vec<usize>)>Sets: each set is (cost, elements)
Implementations§
Trait Implementations§
Source§impl Clone for SetCoverProblem
impl Clone for SetCoverProblem
Source§fn clone(&self) -> SetCoverProblem
fn clone(&self) -> SetCoverProblem
Returns a duplicate of the value. Read more
1.0.0 · 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 SetCoverProblem
impl Debug for SetCoverProblem
Source§impl<'de> Deserialize<'de> for SetCoverProblem
impl<'de> Deserialize<'de> for SetCoverProblem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SetCoverProblem
impl RefUnwindSafe for SetCoverProblem
impl Send for SetCoverProblem
impl Sync for SetCoverProblem
impl Unpin for SetCoverProblem
impl UnsafeUnpin for SetCoverProblem
impl UnwindSafe for SetCoverProblem
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