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§

Any kind of contiguous container

Examples
  • [T; N]
  • [T; 0]
  • heapless::Vec<T, N>

Any kind of contiguous container (should not be ZST). R must also live as long as 'a

Examples
  • [T; N]
  • heaples::Vec<T, N>

Implementors§