pub trait Mergeable: Copy {
// Required methods
fn could_be_equal(&self, other: &Self) -> bool;
fn union(&self, other: &Self) -> Self;
}Expand description
A value that can be tested for approximate equality against another of
the same type and combined into the smallest value definitely
containing both — the building block DisjointSet merges on.
Required Methods§
fn could_be_equal(&self, other: &Self) -> bool
fn union(&self, other: &Self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".