Trait flatk::PermuteInPlace[][src]

pub trait PermuteInPlace {
    fn permute_in_place(&mut self, indices: &[usize], seen: &mut [bool]);
}

Required methods

Implementations on Foreign Types

Permute this slice according to the given permutation. The given permutation must have length equal to this slice. The slice seen is provided to keep track of which elements have already been seen. seen is assumed to be initialized to false and have length equal or larger than this slice.

Permute this collection according to the given permutation. The given permutation must have length equal to this collection. The slice seen is provided to keep track of which elements have already been seen. seen is assumed to be initialized to false and have length equal or larger than this collection.

Implementors

This is a more general implementation of permute in place that is also used for slices.