Trait union_find::Union
[−]
[src]
pub trait Union: Sized { fn union(lval: Self, rval: Self) -> UnionResult<Self>; }
The value that can be contained with Union
.
Required Methods
fn union(lval: Self, rval: Self) -> UnionResult<Self>
Union two value into one.
This is used by UnionFind::union
operation.
Implementors
impl Union for UnionBySize
impl Union for UnionByRank
impl Union for UnionBySizeRank
impl Union for UnionByRankSize