[−][src]Trait flatk::PermuteInPlace
Required methods
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.
Implementors
impl<S: Dummy, N: Unsigned + Default> PermuteInPlace for UniChunked<S, U<N>> where
ChunkedN<S>: PermuteInPlace,
[src]
ChunkedN<S>: PermuteInPlace,
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.