Struct union_find::UnionBySizeRank
[−]
[src]
pub struct UnionBySizeRank(_, _);
Operates the union
with using the size and the rank of the sets as weight.
A smaller sized set will be the children of a larger sized set. If both sets have the same size, compared by the rank.
Methods
impl UnionBySizeRank
[src]
fn size(&self) -> usize
[src]
Returns the size of the set.
fn rank(&self) -> u8
[src]
Returns the rank of the set.
Trait Implementations
impl Copy for UnionBySizeRank
[src]
impl Clone for UnionBySizeRank
[src]
fn clone(&self) -> UnionBySizeRank
[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 UnionBySizeRank
[src]
impl Union for UnionBySizeRank
[src]
fn union(
left: UnionBySizeRank,
right: UnionBySizeRank
) -> UnionResult<UnionBySizeRank>
[src]
left: UnionBySizeRank,
right: UnionBySizeRank
) -> UnionResult<UnionBySizeRank>
Union two value into one. Read more
impl Default for UnionBySizeRank
[src]
fn default() -> UnionBySizeRank
[src]
Returns the "default value" for a type. Read more