pub struct QuickUnion<H = ByRank, const COMPRESS_PATH: bool = true> { /* private fields */ }
Expand description

QuickUnion algorithm

This algorithm is parameterized by the following

  • H - Heuristic Type. Available types: ByRank, BySize, Unweighted
  • COMPRESS_PATH - boolean value, enables path compression during find operation

By default, ByRank heuristic is used and path compression is enabled

Trait Implementations§

Any kind of contiguous container Read more
Any kind of contiguous container (should not be ZST). R must also live as long as 'a Read more
Any kind of contiguous container Read more
Any kind of contiguous container (should not be ZST). R must also live as long as 'a Read more
Any kind of contiguous container Read more
Any kind of contiguous container (should not be ZST). R must also live as long as 'a Read more
Any kind of contiguous container Read more
Any kind of contiguous container (should not be ZST). R must also live as long as 'a Read more
Any kind of contiguous container Read more
Any kind of contiguous container (should not be ZST). R must also live as long as 'a Read more
Any kind of contiguous container Read more
Any kind of contiguous container (should not be ZST). R must also live as long as 'a Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.