Type Definition permutator::KPermutationIntoCellParams
source · 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
- First value in tuple is
&'a [T]
. It’s a source data to generate k-permutation. - Second value in tuple is
usize
. It’sk
size which shall be less thann
wheren
is a length of the first value. - 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
sourceimpl<'a, 'b: 'a, T> Permutation<'a> for KPermutationIntoCellParams<'b, T>
impl<'a, 'b: 'a, T> Permutation<'a> for KPermutationIntoCellParams<'b, T>
type Permutator = KPermutationCellIter<'b, T>
type Permutator = KPermutationCellIter<'b, T>
A permutation generator for a collection of data. Read more
sourcefn permutation(&'a mut self) -> Self::Permutator
fn permutation(&'a mut self) -> Self::Permutator
Create a permutation based on Heap’s algorithm.
It return HeapPermutation object. Read more