pub trait Heuristic {
type RngProvider: RngCore;
// Required method
fn handle_decision<T>(
a: T::IdentifierType,
b: T::IdentifierType,
heuristic: &mut [usize],
representative: &mut [T],
r: &mut Self::RngProvider,
)
where T: VertexType;
}Expand description
Heuristic for quick union algorithm
Required Associated Types§
type RngProvider: RngCore
Required Methods§
fn handle_decision<T>(
a: T::IdentifierType,
b: T::IdentifierType,
heuristic: &mut [usize],
representative: &mut [T],
r: &mut Self::RngProvider,
)where
T: VertexType,
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.