Struct union_find::UnionByRankSize
[−]
[src]
pub struct UnionByRankSize(_, _);
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.
Methods
impl UnionByRankSize
[src]
fn rank(&self) -> u8
[src]
Returns the rank of the set.
fn size(&self) -> usize
[src]
Returns the size of the set.
Trait Implementations
impl Copy for UnionByRankSize
[src]
impl Clone for UnionByRankSize
[src]
fn clone(&self) -> UnionByRankSize
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for UnionByRankSize
[src]
impl Union for UnionByRankSize
[src]
fn union(
left: UnionByRankSize,
right: UnionByRankSize
) -> UnionResult<UnionByRankSize>
[src]
left: UnionByRankSize,
right: UnionByRankSize
) -> UnionResult<UnionByRankSize>
Union two value into one. Read more
impl Default for UnionByRankSize
[src]
fn default() -> UnionByRankSize
[src]
Returns the "default value" for a type. Read more