Trait pulau_rs::AlgorithmContainer
source · pub trait AlgorithmContainer {
type HeuristicContainer<'a, const N: usize>: AsRef<[usize]> + AsMut<[usize]>;
type RepresentativeContainer<'a, R: VertexType + 'a, const N: usize>: AsRef<[R]> + AsMut<[R]>;
}
Expand description
This trait represents the kind of containers that is required for a particular algorithm to function
Required Associated Types§
sourcetype RepresentativeContainer<'a, R: VertexType + 'a, const N: usize>: AsRef<[R]> + AsMut<[R]>
type RepresentativeContainer<'a, R: VertexType + 'a, const N: usize>: AsRef<[R]> + AsMut<[R]>
Any kind of contiguous container (should not be ZST). R
must also live as long as 'a
Examples
[T; N]
heaples::Vec<T, N>