There is my Rust Playground to an iterative and the looping variants of vector permutation in Rust language.
As known the iterative variant is a little bit faster.