permute (cargo): Generate permutations of vectors and slices in a memory-efficient and deterministic manner, using Heap's algorithm.
Keywords: permutations|combinatorics|permutation|heaps|algorithm