Struct union_find::UnionByRankSize
source · pub struct UnionByRankSize(/* private fields */);
Expand description
Operates the union
with using the ramk and the size of the sets as weight.
A smaller ranked set will be the children of a larger ranked set. If both sets have the same rank, compared by the size.
Implementations§
Trait Implementations§
source§impl Clone for UnionByRankSize
impl Clone for UnionByRankSize
source§fn clone(&self) -> UnionByRankSize
fn clone(&self) -> UnionByRankSize
Returns a copy 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 UnionByRankSize
impl Debug for UnionByRankSize
source§impl Default for UnionByRankSize
impl Default for UnionByRankSize
source§fn default() -> UnionByRankSize
fn default() -> UnionByRankSize
Returns the “default value” for a type. Read more
source§impl Union for UnionByRankSize
impl Union for UnionByRankSize
source§fn union(
left: UnionByRankSize,
right: UnionByRankSize
) -> UnionResult<UnionByRankSize>
fn union( left: UnionByRankSize, right: UnionByRankSize ) -> UnionResult<UnionByRankSize>
Union two value into one. Read more
impl Copy for UnionByRankSize
Auto Trait Implementations§
impl RefUnwindSafe for UnionByRankSize
impl Send for UnionByRankSize
impl Sync for UnionByRankSize
impl Unpin for UnionByRankSize
impl UnwindSafe for UnionByRankSize
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