pub type KPermutationIntoCellParams<'a, T> = (&'a [T], usize, Rc<RefCell<&'a mut [&'a T]>>);
Expand description

A tuples of 3 parameters that allow Permutation trait to create k-permutation iterator from it.

This type is used exclusively in trait Permutation

Format

  1. First value in tuple is &'a [T]. It’s a source data to generate k-permutation.
  2. Second value in tuple is usize. It’s k size which shall be less than n where n is a length of the first value.
  3. Third value in tuple is Rc<RefCell<&mut[&T]>> It’s a sink of operation. It’s a ref to each permutation result.

Trait Implementations

A permutation generator for a collection of data. Read more
Create a permutation based on Heap’s algorithm. It return HeapPermutation object. Read more