pub struct Permutations<T> {
// some fields omitted
}An Iterator that uses ElementSwaps to iterate through
all possible permutations of a vector.
The first iteration yields a clone of the vector as it is,
then each successive element is the vector with one
swap applied.
Generates even and odd permutations alternately.
Trait Implementations
fn map<B>(self, |Vec<T>|: 'r -> B) -> Map<'r, Vec<T>, B, Permutations<T>>
fn scan<St, B>(self, St, |&mut St, Vec<T>|: 'r -> Option<B>) -> Scan<'r, Vec<T>, B, Permutations<T>, St>
fn fold<B>(&mut self, B, |B, Vec<T>| -> B) -> B
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).