pub trait AlgorithmContainer {
type HeuristicKind<'a>: Heuristic<RngProvider = Self::RngKind<'a>>;
type HeuristicContainer<'a, const N: usize>: AsRef<[usize]> + AsMut<[usize]>;
type RepresentativeContainer<'a, V: VertexType + 'a, const N: usize>: AsRef<[V]> + AsMut<[V]>;
type RngKind<'a>: RngCore;
}Expand description
This trait represents the kind of containers that is required for a particular algorithm to function
Required Associated Types§
type HeuristicKind<'a>: Heuristic<RngProvider = Self::RngKind<'a>>
Sourcetype RepresentativeContainer<'a, V: VertexType + 'a, const N: usize>: AsRef<[V]> + AsMut<[V]>
type RepresentativeContainer<'a, V: VertexType + 'a, const N: usize>: AsRef<[V]> + AsMut<[V]>
Any kind of contiguous container (should not be ZST). R must also live as long as 'a
§Examples
[T; N]heaples::Vec<T, N>
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.