Trait union_find::Union
source · pub trait Union: Sized {
// Required method
fn union(lval: Self, rval: Self) -> UnionResult<Self>;
}
Expand description
The value that can be contained with Union
.
Required Methods§
sourcefn union(lval: Self, rval: Self) -> UnionResult<Self>
fn union(lval: Self, rval: Self) -> UnionResult<Self>
Union two value into one.
This is used by UnionFind::union
operation.