pub struct Partition { /* private fields */ }
Implementations§
Source§impl Partition
impl Partition
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 compact(&mut self, use_turbo: bool)
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_name(&self) -> String
pub fn get_subset_ids(&self) -> Vec<u64>
pub fn get_vector(&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) -> 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 set_name(&mut self, name: &str)
pub fn set_upper_bound(&mut self, upper: u64)
pub fn subset_of(&self, e: u64) -> u64
pub fn subset_size_map(&self) -> impl Iterator<Item = (u64, u64)>
pub fn subset_sizes(&self) -> impl Iterator<Item = u64>
pub fn to_singleton(&mut self, e: u64)
pub fn upper_bound(&self) -> u64
Trait Implementations§
impl Send for Partition
Auto Trait Implementations§
impl Freeze for Partition
impl RefUnwindSafe for Partition
impl !Sync for Partition
impl Unpin for Partition
impl UnwindSafe for Partition
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