Trait Union

Source
pub trait Union<T: VertexType, H: Heuristic> {
    // Required method
    fn union_sets(
        representative: &mut [T],
        heuristic: &mut [usize],
        a: T::IdentifierType,
        b: T::IdentifierType,
        rng: &mut H::RngProvider,
    );
}
Expand description

Union operation

Required Methods§

Source

fn union_sets( representative: &mut [T], heuristic: &mut [usize], a: T::IdentifierType, b: T::IdentifierType, rng: &mut H::RngProvider, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<H, T, const COMPRESS_PATH: bool> Union<T, H> for QuickUnion<H, COMPRESS_PATH>
where T: VertexType, H: Heuristic, Self: Find<T>,

Source§

impl<T, K> Union<T, NoHeuristic> for QuickFind<K>
where T: VertexType, Self: Find<T>,