[][src]Trait flatk::PermuteInPlace

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

Required methods

fn permute_in_place(&mut self, indices: &[usize], seen: &mut [bool])

Loading content...

Implementations on Foreign Types

impl<'_, T> PermuteInPlace for &'_ mut [T][src]

fn permute_in_place(&mut self, permutation: &[usize], seen: &mut [bool])[src]

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.

impl<T> PermuteInPlace for Vec<T>[src]

fn permute_in_place(&mut self, permutation: &[usize], seen: &mut [bool])[src]

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.

Loading content...

Implementors

impl<S: Dummy, N: Unsigned + Default> PermuteInPlace for UniChunked<S, U<N>> where
    ChunkedN<S>: PermuteInPlace
[src]

fn permute_in_place(&mut self, permutation: &[usize], seen: &mut [bool])[src]

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.

impl<S: PermuteInPlace, T, I: PermuteInPlace> PermuteInPlace for Sparse<S, T, I>[src]

impl<S: Set + SwapChunks> PermuteInPlace for ChunkedN<S>[src]

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

fn permute_in_place(&mut self, permutation: &[usize], seen: &mut [bool])[src]

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.

Loading content...