Crate permutations[−][src]
Expand description
Permutations.
Constructs single permutations and provides operations such as composition, inverse and exponentiation. Allows iterate over permutations in lexicographic order and alos to access them by index.
Crate Status
Experimental
Limitations
- Depending on the number of bits in
usize
you can iterate over permutations of at most 20 elements for 64 bits, 12 elements for 32 bits, or 8 elements for 16 bits. The same applies to indexed access.
Crate Feature Flags
random
- Off by default.
- Adds a dependency to the
rand
crate. - Adds the method
random
to generate a random permutation ofn
elements.
Structs
A permutation.
The sequence of all permutations of n
elements in lexicographic order.