Struct union_find::UnionByRank [] [src]

pub struct UnionByRank(_);

Operates the union with using the rank 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, the size of the set is used.

Methods

impl UnionByRank
[src]

fn rank(&self) -> u8

Returns the rankq of the set.

Trait Implementations

impl Debug for UnionByRank
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for UnionByRank
[src]

fn clone(&self) -> UnionByRank

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for UnionByRank
[src]

impl Union for UnionByRank
[src]

fn union(left: UnionByRank, right: UnionByRank) -> UnionResult<UnionByRank>

Union two value into one. Read more

impl Default for UnionByRank
[src]

fn default() -> UnionByRank

Returns the "default value" for a type. Read more