pub struct Cover { /* private fields */ }
Implementations§
Source§impl Cover
impl Cover
pub fn new(z: u64) -> Self
pub fn add_to_subset(&mut self, s: u64, e: u64)
pub fn all_to_singletons(&mut self)
pub fn contains(&self, e: u64) -> bool
pub fn extend(&mut self) -> u64
pub fn get_members(&self, s: u64) -> Vec<u64>
pub fn get_subset_ids(&self) -> Vec<u64>
pub fn in_same_subset(&self, e1: u64, e2: u64) -> bool
pub fn lower_bound(&self) -> u64
pub fn merge_subsets(&mut self, s: u64, t: u64)
pub fn move_to_subset(&mut self, s: u64, e: u64)
pub fn number_of_elements(&self) -> u64
pub fn number_of_subsets(&self) -> u64
pub fn remove_from_subset(&mut self, s: u64, e: u64)
pub fn set_upper_bound(&mut self, upper: u64)
pub fn subset_size_map(&self) -> impl Iterator<Item = (u64, u64)>
pub fn subset_sizes(&self) -> impl Iterator<Item = u64>
pub fn subsets_of(&self, e: u64) -> impl Iterator<Item = u64>
pub fn to_singleton(&mut self, e: u64) -> u64
pub fn upper_bound(&self) -> u64
Trait Implementations§
impl Send for Cover
Auto Trait Implementations§
impl Freeze for Cover
impl RefUnwindSafe for Cover
impl !Sync for Cover
impl Unpin for Cover
impl UnwindSafe for Cover
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