Crate permutohedron

Source
Expand description

§Crate Feature Flags

  • std
    • Default. Disabling std requires Rust 1.6 or later
    • Disabling std makes the crate a #![no_std] crate (works with core)

Modules§

control
Control flow for callbacks.

Structs§

Heap
Heap’s algorithm for generating permutations.

Constants§

MAXHEAP
Maximum number of elements we can generate permutations for using Heap’s algorithm (iterative version).

Traits§

LexicalPermutation
Permute a slice into its next or previous permutation (in lexical order).

Functions§

factorial
Compute n! (n factorial)
heap_recursive
Heap’s algorithm for generating permutations, recursive version.