pub struct UnionFind4Usize { /* private fields */ }
Implementations§
Source§impl UnionFind4Usize
impl UnionFind4Usize
pub fn new(count: usize) -> Self
pub fn add(&mut self) -> usize
pub fn is_connected(&mut self, p: usize, q: usize) -> bool
pub fn find(&mut self, p: usize) -> usize
pub fn union(&mut self, p: usize, q: usize)
pub fn union_count(&self) -> usize
pub fn union_size(&mut self, p: usize) -> usize
pub fn len(&self) -> usize
Auto Trait Implementations§
impl Freeze for UnionFind4Usize
impl RefUnwindSafe for UnionFind4Usize
impl Send for UnionFind4Usize
impl Sync for UnionFind4Usize
impl Unpin for UnionFind4Usize
impl UnwindSafe for UnionFind4Usize
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