Struct union_find::QuickUnionUf [] [src]

pub struct QuickUnionUf<V> { /* fields omitted */ }

Union-Find implementation with quick union operation.

Trait Implementations

impl<V: Debug> Debug for QuickUnionUf<V>
[src]

[src]

Formats the value using the given formatter.

impl<V: Clone> Clone for QuickUnionUf<V>
[src]

[src]

Returns a copy of the value. Read more

[src]

Performs copy-assignment from source. Read more

impl<V: Union> UnionFind<V> for QuickUnionUf<V>
[src]

[src]

Returns the size of self.

[src]

Inserts a new set into the union. Read more

[src]

Join two sets that contains given keys (union operation). Read more

[src]

Returns the identifier of the set that the key belongs to.

[src]

Returns the reference to the value of the set that the key belongs to.

[src]

Returns the mutable reference to the value of the set that the key belongs to.

[src]

Creates empty UnionFind struct.

impl<A: Union> FromIterator<A> for QuickUnionUf<A>
[src]

[src]

Creates a value from an iterator. Read more

impl<A> Extend<A> for QuickUnionUf<A>
[src]

[src]

Extends a collection with the contents of an iterator. Read more